Displaying 1 result from an estimated 1 matches for "ldgdp".
Did you mean:
ldgdg
2000 Feb 09
0
About function 'gnls'
...ata set "lx.sea" contains some seasonal GDP with some independent variables. I want to fit a nonlinear least square using restricted maximum likelihood estimation. There exists a AR(4) correlation structure (only the 4th AR) in the error term. So I enter the following commands:
> gnls(ldgdp~+pc2+pc3+pc4+pc5+pc7+t,data=lx.sea,correlation=corARMA(p=4,q=0))
It results not only the 4th AR but also the first 3 order AR in the equation. So how can I fit my model with only the 4th AR?? Are there any other function in R allow me to do that??
Thanks for the help and look forward to your repl...