Displaying 1 result from an estimated 1 matches for "catagorise".
Did you mean:
catagories
2009 Jan 14
2
runs.test in by() statement
...ata<-data.frame(interviewer=rep(letters[1:2], 1),
var=round(var=runif(40)))
I do the runs test on "var" and it works
runs.test(as.factor(exampledata$var))
Runs Test
data: as.factor(exampledata$var)
Standard Normal = -1.626, p-value = 0.1039
alternative hypothesis: two.sided
I can catagorise the data by "interviewer" and get means using the by()
statement and that works perfectly
by(exampledata$var, exampledata$interviewer, mean)
exampledata$interviewer: a
[1] 0.4
------------------------------------------------------------
exampledata$interviewer: b
[1] 0.35
Why is it imp...