[R] Survey Package with Binary Data (no Standard Errors reported)
raptorman18 at gmail.com
Fri Apr 3 09:10:08 CEST 2009
I'm trying to get standard errors for some of the variables in my data
frame. One of the questions on my survey is whether faculty coordinate
across curriculum to include Arts Education as subject matter. All the
responses are coded in zeros and ones obviously. For some of the other
variables I have a 2 for those that responded with "Don't Know".
I'm getting NA for mean and standard deviations from svymean. Am I doing
something wrong of can the survey package not handle this type of data?
Here's my code.
> survey <- svydesign(id=~1, data=General, strata=~Grade.Level)
In svydesign.default(id = ~1, data = General, strata = ~Grade.Level) :
No weights or probabilities supplied, assuming equal probability
Stratified Independent Sampling design (with replacement)
svydesign(id = ~1, data = General, strata = ~Grade.Level)
Min. 1st Qu. Median Mean 3rd Qu. Max.
1 1 1 1 1 1
Elementary High Middle
obs 312 236 156
design.PSU 312 236 156
actual.PSU 312 236 156
 "Grade.Level" "Curriculum"
 "Field.Trips" "Residencies"
 "PTA.Support" "Community.Open.Performances"
 "Visual.Arts.Attendance" "Literary.Arts.Attendance"
 "Arts.Organization.Membership" "Arts.Essential"
> svymean(~Curriculum, survey)
Curriculum NA NA
More information about the R-help