Re: [R] Composite index reliability questions - cronbach()

2015-09-05 Thread Jim Lemon
Hi Nick, If you haven't just made a typo on your example in QUESTION 2, the "This doesn't" line should read: cronbach(jdc[,c("Q1","Q2","Q3")]) Without the quotes, R looks for three objects named Q1, Q2 and Q3 and probably doesn't find them. Jim On Sat, Sep 5, 2015 at 7:27 AM, Nick Petschek

Re: [R] Composite index reliability questions - cronbach()

2015-09-05 Thread Nick Petschek
Thanks, Jim! The lack of quotes was a typo, but what was not was my forgetting to include the "c(" function... Thanks! On Sat, Sep 5, 2015 at 7:23 AM, Jim Lemon wrote: > Hi Nick, > If you haven't just made a typo on your example in QUESTION 2, the "This > doesn't" line

[R] Composite index reliability questions - cronbach()

2015-09-04 Thread Nick Petschek
Hi All, I have two questions on using cronbach() from the psy() package. My simplified situation is the following: I have a survey of 10 questions (column names are "Q1", "Q2", etc.) that went out to 100+ people. I have the responses to the questions, plus additional variables (demographics,