powered by
This function allows you to estimate pseudo-causal ARX models by OLS (compatible with most functions in lm() class).
pseudo(y, x, p)# S3 method for default pseudo(y, x, p)# S3 method for pseudo print(x, ...)# S3 method for pseudo summary(object, ...)
# S3 method for default pseudo(y, x, p)
# S3 method for pseudo print(x, ...)
# S3 method for pseudo summary(object, ...)
Data vector of time series observations.
Matrix of data (every column represents one time series). Specify NULL or "not" if not wanted.
Number of lags to be included.
Other arguments
An object of the class "pseudo"
An object of class "pseudo" is a list containing the following components:
"pseudo"
Vector of estimated coefficients.
Vector of estimated autoregressive parameters.
Vector of estimated exogenous parameters.
Mean squared error.
Residuals.
Value of the loglikelihood.
Fitted values.
Degrees of freedom.
Variance-covariance matrix of residuals.
# NOT RUN { data <- sim.marx(c('t',1,1), c('t',1,1),100,0.5,0.4,0.3) object <- pseudo(data$y, data$x, 2) class(object) <- "pseudo" summary(object) # }
Run the code above in your browser using DataLab