[R] how to get AIC BIC information using funtion lm

arunkumar1111 akpbond007 at gmail.com
Mon Nov 28 08:28:21 CET 2011


Hi
how to get  AIC BIC information using funtion lm ?

Please help me

Data<- read.csv("C:/FE and RE.csv")
Formula="Y~X2+X3+X4
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
S2 1962 31.2 492.9 37.3 54.7 77.4 68.7
S1 1962 33.3 528.6 38.1 63.7 80.2 73.6
S2 1963 35.6 560.3 39.3 69.8 80.4 76.3
S1 1963 36.4 624.6 37.8 65.9 83.9 77.2
S2 1964 36.7 666.4 38.4 64.5 85.5 78.1



--
View this message in context: http://r.789695.n4.nabble.com/how-to-get-AIC-BIC-information-using-funtion-lm-tp4114401p4114401.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list