Predict method for fitted objects of class "panelAR".
Predicted values from Prais-Winsten regression.
## S3 method for class 'panelAR' predict(object,newdata=NULL,se.fit = FALSE, conf.interval = FALSE, conf.level = 0.95, na.action=na.pass,...)
object |
an object of class |
newdata |
an optional data frame used for prediction. If omitted, the fitted values are used. |
se.fit |
logical. If |
conf.interval |
logical. If |
conf.level |
A number in the range (0,1) denoting the confidence level. Default: 0.95. |
na.action |
function denoting how to handle missing values in |
... |
further arguments passed to or from other methods. |
fit |
either a vector or a data frame containing the fitted values, as well as standard errors and/or intervals (if specified). If |
df |
degrees of freedom. |
Konstantin Kashin kkashin@fas.harvard.edu
The function panelAR
.
See predict.lm
and napredict
for additional details.
data(Rehm) out <- panelAR(NURR ~ gini, data=Rehm, panelVar='ccode', timeVar='year', autoCorr='ar1', panelCorrMethod='pcse', rho.na.rm=TRUE, panel.weight='t-1', bound.rho=TRUE) summary(out) # fitted values (with SE and CI) predict(out, se.fit=TRUE, conf.interval=TRUE)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.