Grocer Function
NAME
olsar1 - maximum likelihood estimation of an autocorrelated model
CALLING SEQUENCE
[result]=olsar1(grocer_namey, arg1,...,argn)
PARAMETERS
Input
-
grocer_namey = a time series, a real (nx1) vector or a string equal to the name of a time series or a (nx1) real vector between quotes
-
argi = an argument which can be:
- a time series
- a real (nx1) vector
- a real (nxk) matrix
- a string equal to the name of a time series or a (nxk) real vector or matrix between quotes
- a list of such elemnts
- the string 'noprint' if the user doesn't want to display the results of the regression
Output
-
rolsar1 = a results tlist with
- rolsar1('meth') = ' ar(1) maximum likelihood'
- rolsar1('y') = y data vector
- rolsar1('x') = x data matrix
- rolsar1('nobs') = # observations
- rolsar1('nvar') = # variables
- rolsar1('beta') = bhat
- rolsar1('yhat') = yhat
- rolsar1('resid') = residuals
- rolsar1('vcovar') = estimated variance-covariance matrix of beta
- rolsar1('sige') = estimated variance of the residuals
- rolsar1('sigu') = sum of squared residuals
- rolsar1('ser') = standard error of the regression
- rolsar1('tstat') = t-stats
- rolsar1('pvalue') = pvalue of the betas
- rolsar1('dw') = Durbin-Watson Statistic
- rolsar1('condindex') = multicolinearity cond index
- rolsar1('prescte') = boolean indicating the presence or absence of a constant in the regression
- rolsar1('rsqr') = rsquared
- rolsar1('rbar') = rbar-squared
- rolsar1('f') = F-stat for the nullity of coefficients other than the constant
- rolsar1('pvaluef') = its significance level
- rolsar1('prests') = boolean indicating the presence or absence of a time series in the regression
- rolsar1('namey') = name of the y variable
- rolsar1('namex') = name of the x variables
- rolsar1('bounds') = if there is a timeseries in the regression, the bounds of the regression
- rolsar1('rho') = estimated first order autocorrelation of residuals
- rolsar1('trho') = its Student t
- rolsar1('like') = log-likelihood of the regression
DESCRIPTION
Computes maximum likelihood ols regression for AR1 errors, using Cochrane-Orcutt estimates as starting values. Endogenous variable must be given first, as a vector, a ts, between quotes (if the user wants to keep the name of the variable in the tlist result and for the printings) or not. Exogenous variables are given after, in one of the formats authorized for the endogenous one, or in matrix format. The program displays on screen various results (coefficients, tstat, Rē, Durbin and Watson, first order autocorrelation of residuals,...) except if the user has entered the argument 'noprint' anywhere after the first argument.
EXAMPLE
load('grocer/bdexamples/bdhenderic.dat') ; bounds('1964q3','1989q2') ; rolsar1=olsc('del(lm1-lp)','del(lp)','rnet','lagts(1,lm1-lp-ly)','cte')
This example, taken from olsar1_d, shows the estimation of first order autocorrelated model on Hendry and Ericsson (1991) preferred specification from which the variable 'del(lagts(1,lm1-lp-ly))' has been withdrawn.
AUTHOR
Eric Dubois 2002