Originally Posted by
orduek
how do I divide the data?
if I have the list with the two levels, how can I tell R to list the data only with B=1?
and BTW - this method is OK for within subject variable but when you do a simple main effect on a between variable you should use the error term you of the entire model (based on the fact that larger N is better)
Could create a new subset of the data where B=1
Code:
x <- subset(data, data$B==1)
That way you only have the data you want in a new object. I'm sure there are other ways, this is R after all.
Bookmarks