recursive {gets} | R Documentation |
Recursive estimation
Description
Recursive estimation of coefficients and standard errors
Usage
recursive(object, spec="mean", std.errors=TRUE, from=40, tol=1e-07,
LAPACK=FALSE, plot=TRUE, return=TRUE)
Arguments
object |
an |
spec |
'mean' or 'variance'. If 'mean' (default), the the recursive estimates of the mean-equation are estimated |
std.errors |
logical. If TRUE (default), then the coefficient standard errors are also computed |
from |
integer. The starting point of the recursion |
tol |
numeric. The tolerance for linear dependency among regressors |
LAPACK |
logical, TRUE or FALSE (default). If true use LAPACK otherwise use LINPACK, see |
plot |
NULL or logical. If TRUE, then the recursive coefficient estimates are plotted. If NULL (default), then the value set by |
return |
logical. If TRUE (default), then the recursive estimates are returned in a list |
Value
If return=TRUE
, then a list
is returned with the following components:
estimates |
a |
standard.errors |
a |
Author(s)
Genaro Sucarrat, http://www.sucarrat.net/
See Also
Examples
##generate random variates, estimate model:
y <- rnorm(100)
mX <- matrix(rnorm(4*100), 100, 4)
mymodel <- arx(y, mc=TRUE, mxreg=mX)
##compute recursive estimates and plot them:
recursive(mymodel)