[R-sig-eco] Manually calculate residuals
Johannes Radinger
JRadinger at gmx.at
Wed Nov 23 14:45:00 CET 2011
Hello,
I have a dataset like:
dataframe(y,x1,x2,x3)
and I know a given (external) regression with its
parameter estimates like:
y = Intercept + b1*x1 + b2*x2 + b3*x3
Now I'd like to manually calculate the residuals
of my "new" data based on the given (external) regression.
Is there any built in function of R for doing that
(not resid()) or do I have to manually calculate fitted values
and then residuals for each dataset?
best regards,
Johannes
--
More information about the R-sig-ecology
mailing list