Skip to content
Prev 47836 / 398500 Next

lm with data=(means,sds,ns)

Prof Brian Ripley <ripley at stats.ox.ac.uk> writes:
That's what he did, no? A slightly more readable version is

 m + s*scale(rnorm(n))
However, it begs the question whether it wouldn't have been better to
design the RSS into the lm class rather than computing it from
residuals in summary.lm and anova.lm and predict.lm and...