Displaying 2 results from an estimated 2 matches for "dudleyls1rak".
Did you mean:
dudleyls1rake
2007 May 18
1
svychisq
Dear All
I am trying to use svychisq with a two-dimensional table 4 x 5. The
command I am using is
summary(svytable(~dietperception+dietstatus,dudleyls1rake,na.rm=TRUE),"C
hisq")
It is throwing up an error message as follows:
Error in NCOL(y) : only 0's may be mixed with negative subscripts
In addition: Warning messages:
1: is.na() applied to non-(list or vector) in: is.na(rowvar)
2: is.na() applied to non-(list or vector) in: is....
2010 Apr 07
0
Help with manipulation of svytotal output
...ble to do this in R. In this example I
would like to insert a row between rows 5 and 6, 10 and 11, 15 and 16,
20 and 21 and put in the sum of the rows 1-5, 6-10, 11-15, 16-20 and to
delete row 21 which has NA in it. I would then like to delete all the
headings.
svyby(~agestrata, ~cbc1+fruitveg4, dudleyls1rake.male,na.rm=TRUE,
svytotal, keep.var=FALSE, keep.names=FALSE)
cbc1
fruitveg4 statistic.agestrata18-24 statistic.agestrata25-34
statistic.agestrata35-44 statistic.agestrata45-54
1 Quintile 1 - Most deprived At least 5
portions a day...