[R] frequency tables

2015-09-09 Thread Nick Petschek
Hi, I want to run frequency tables for multiple categorical variables, ideally one in %, and the other as a count, and am unsure how to proceed. I would like my output to be the following: | favorable | unfavorable | neutral Q1 | 80% | 10%| 10% | Q2 | 70% |

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

2015-09-05 Thread Nick Petschek
"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, Ni

[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,