Actuarial Outpost > CAS E3: Fall 2019 Thread
 Register Blogs Wiki FAQ Calendar Search Today's Posts Mark Forums Read
 FlashChat Actuarial Discussion Preliminary Exams CAS/SOA Exams Cyberchat Around the World Suggestions

#1
09-12-2019, 12:45 PM
 ButtressWOPersonality Member CAS Join Date: Jun 2011 Location: Existential Angst-Ville Studying for iCAS3 College: UMass/BC Posts: 80

Hello! Figure it is a good idea to kick things off with a thread on Fall 2019.

First question: in section B4, I can't find the data used in the code from Gelman and Hill in 11.3. The data for "smoking" on the website uses all numerical data, but the code requires data set with "f"s and "Ys".

Here is the code that Gelman includes on his website for 11.3... very not helpful in identifying the data, imo.

# Data are at http://www.stat.columbia.edu/~gelman/arm/examples/?
data?
library ("arm")
?data
## Overall rate of smoking (figure 11.5)

## Pull out the smoking outcome: single data matrix
y <- data[,seq(6,12,2)]
female <- ifelse (data[,2]=="f", 1, 0)
mom.smoke <- ifelse (data[,3]=="Y", 1, 0)
dad.smoke <- ifelse (data[,4]=="Y", 1, 0)
__________________
ACAS 7 8 9
#2
09-16-2019, 11:39 AM
 ButtressWOPersonality Member CAS Join Date: Jun 2011 Location: Existential Angst-Ville Studying for iCAS3 College: UMass/BC Posts: 80

UPDATE: I sent an email to Prof. Gelman... he acknowledged that the dataset is on the website is not correct.

Hi, BUTTRESSWOPersonality: I agree. It seems that the original dataset is not on the website. I think it's ok in this example to simply read the code in the text without trying to run it. The point of this example is simply that the data in this multilevel structure is stored in two different matrices, one for the person and one for the data points.
I hope this helps.
Andrew
__________________
ACAS 7 8 9
#3
09-24-2019, 07:27 PM
 mediocre_actuary Member CAS Join Date: Jan 2017 Posts: 33

Are the datasets for the sample exam available somewhere? I'd like to work through these problems at some point. I assume it's available in the practice exam environment but since that's a time sensitive thing I'd prefer to have the data outside of that.
#4
09-29-2019, 09:08 PM
 DrahcirYkcir Non-Actuary Join Date: Sep 2019 College: Penn State University - Alumni Posts: 5

Quote:
 Originally Posted by mediocre_actuary Are the datasets for the sample exam available somewhere? I'd like to work through these problems at some point. I assume it's available in the practice exam environment but since that's a time sensitive thing I'd prefer to have the data outside of that.
I haven't heard anything even regarding the practice exam. Do we have to have that set up ourselves or will an invitation be set up in the coming week or two to take it?

On topic, unless they specify one of the datasets used in a publicized R package (MASS, ISLR etc) I don't imagine that we'd have the set to play with ourselves, unfortunately.
#5
09-30-2019, 12:04 PM
 mediocre_actuary Member CAS Join Date: Jan 2017 Posts: 33

I believe you are able to schedule it yourself once you have registered for the exam.

Also, I fortunately believe I have found the dataset for the last R problem just by googling it but the other 2 do not seem to be readily available.