[R] gls procedure in nlme

Steven Yen syen04 at gmail.com
Wed Jan 4 10:41:47 CET 2017


I need help with gls{nlme}.
Specifically, I am estimating an equation with AR(1) using 
maximum-likelihood. I am not understanding the correlationoption below. 
Help appreciated.

===
library(nlme)
eq1<-log(chnimp)~log(chempi)+log(gas)+log(rtwex)+befile6+
                  affile6+afdec6
reg1<-gls(eq1,data=mydata,correlation=corAR1(),method="ML",verbose=T)


	[[alternative HTML version deleted]]



More information about the R-help mailing list