Displaying 1 result from an estimated 1 matches for "resampled_ecoli".
2011 Jan 04
1
Resampling to find Confidence intervals
...d "do" operators are functions specific to a
workspace that comes with the book, not a normal R setup. So I was
thinking of ways I could achive the same result, or sort of result
because the resample should be different each time, I think the
following would work to the same effect:
resampled_ecoli = sample(ecoli, 500, replace=T)
coefs = (coef(lm(MIC. ~ 1 + Challenge + Cleaner + Replicate,
data=resampled_ecoli)))
sd(coefs)
And then I can work out confidence intervals by multiplying the standard
errors by 2.
Although I'm not used to doing this sort of operation in R so I don't
wan...