Skip to content
Prev 65399 / 398506 Next

Basic stratification calculations

vito muggeo wrote:
Would split(y,f) be of some help here? And then you could find the mean 
for each level of f:

y.split <- split(y,f)
mean(y.split$"0")
mean(y.split$"1")
mean(y.split$"2")
mean(y.split$"3")

Clint