search for: surv3

Displaying 1 result from an estimated 1 matches for "surv3".

Did you mean: surv
2012 Mar 06
1
How to apply two parameter function in data frame
...I want a chisq test (no contingency tables) for participation vs all of the other factors. In SPSS I would do: CROSSTABS /TABLES= (my other factors) BY participation /FORMAT=NOTABLES /STATISTICS=CHISQ /COUNT ROUND CELL. In R I have tried something like: mapply(chisq.test,participation,surv3[,names(surv3) %in% c('q10','q44')]) which should be effectively the same as chisq.test(participation,q10) chisq.test(participation,q44) except maybe I could store the results better.... but I get told that x and y are not the same length, and in this case, length() of the y arg...