Answering my own question.
?sample (!)
y <- by(x, x$TrSeasYr, function(x) mean(sample(x[,1], size=999, replace =
TRUE)))
>>> Tim Howard 10/13/2011 9:42 AM >>>
All -
I have an uneven set of replicates and would like to sample from this set X
number of times to generate a mean for each groupi
All -
I have an uneven set of replicates and would like to sample from this set X
number of times to generate a mean for each grouping variable. I was thinking
the boot package would be the thing to use, but now I'm not so sure ... given
the discussion here:
http://finzi.psych.upenn.edu/Rhel
2 matches
Mail list logo