[R] Manual two-stage least squares in R

2011-01-25 Thread Katharina Ley
Hi, I am trying to manipulate a gls regression model output to adjust for use of two-stage least squares. Basically, I want to estimate a model, then feed in a new set of residuals, then re-calculate all of the model output (i.e. the standard errors of the estimators, etc.). I have found some docu

[R] GLS with corAR(1) correlation structure residual/standard error calculation

2010-12-26 Thread Katharina Ley
I am using the gls function to fit a two-stage least squares model with first order autoregressive error terms. Since there is no automated adjustment for the use of two-stage least squares in this package, I am trying to manually replicate standard errors of the coefficient estimates in order to a