[R-sig-Geo] raw residual calculation

Paul Hiemstra paul.hiemstra at knmi.nl
Thu Jul 21 10:48:17 CEST 2011


 On 07/21/2011 08:21 AM, Francesco Carrer wrote:
> Hello!
>
> I am using R for locational modeling of mountain sites against environmental
> variables. I have carried out a multivariate regression analysis of my sites
> with two independent variables, but I need a method to calculate raw
> residuals of my distribution. What am I supposed to do?
>
> Thank you very much indeed!
>
> Francesco
>
> 	[[alternative HTML version deleted]]
>
> _______________________________________________
> R-sig-Geo mailing list
> R-sig-Geo at r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
Hi,

As I understand your (brief) question, take a look at the residuals
generic function.

lm.cars = lm(speed~dist, cars)
residuals(lm.cars)

cheers,
Paul

-- 
Paul Hiemstra, Ph.D.
Global Climate Division
Royal Netherlands Meteorological Institute (KNMI)
Wilhelminalaan 10 | 3732 GK | De Bilt | Kamer B 3.39
P.O. Box 201 | 3730 AE | De Bilt
tel: +31 30 2206 494

http://intamap.geo.uu.nl/~paul
http://nl.linkedin.com/pub/paul-hiemstra/20/30b/770



More information about the R-sig-Geo mailing list