Hi
> Hei,
>
> i) get names of object returned by lm(). in this case fit
> names(fit)
>
> output from command : names(fit)
>[1] "coefficients" "residuals" "effects" "rank"
> [5] "fitted.values" "assign""qr""df.residual"
> [9] "contrasts" "xlev
Hei,
i) get names of object returned by lm(). in this case fit
names(fit)
output from command : names(fit)
[1] "coefficients" "residuals" "effects" "rank"
[5] "fitted.values" "assign""qr""df.residual"
[9] "contrasts" "xlevels" "c
Hi arunkumar;
fit$residuals , fit$fitted to extract respectively residuals and
fitted values
Regrads
Mohamed
Le 07/12/11 07:20, arunkumar a écrit :
> Data<- read.csv("C:/FE and RE.csv")
> Formula="Y~X2+X3+X4 + X5+X6
> fit=lm(formula=Formula,data=Data)
>
> My sample Data
>
> State Year Y X2
Data<- read.csv("C:/FE and RE.csv")
Formula="Y~X2+X3+X4 + X5+X6
fit=lm(formula=Formula,data=Data)
My sample Data
State Year Y X2 X3 X4 X5 X6
S2 1960 27.8 397.5 42.2 50.7 78.3 65.8
S1 1960 29.9 413.3 38.1 52 79.2 66.9
S2 1961 29.8 439.2 40.3 54 79.2 67.8
S1 1961 30.8 459.7 39.5 55.3 79.2 69.6
Is
4 matches
Mail list logo