search for: micronutri

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

2010 Apr 26
1
failing to select a subset of observations based on variable values [Sec: UNCLASSIFIED]
...d I can't get it to work. The chi-square test without the attempt to subset using "if" is working fine, I don't understand what I am doing wrong in my attempts to subset. I have tried to reference the variables like this: > if ("Q1A"!=8 | "Q1B"!=8) + (table(micronutrients[,8,80])) <group counts snipped> > chisq.test(table(micronutrients[,8,80])) The group counts returned from the table statement show me that no observations are being excluded from the analysis. The chisq.test works fine on (table(micronutrients[,8,80])) but, of course, it is being perf...