fvauto | R Documentation |
Vector autoregressive approximation
fvauto(x,n,omx,p0=0.01,kmn=0,kmx=0,mx=21,kex=0,sub=T,inr=TRUE)
x |
Variable |
n |
Sample size |
omx |
Maximum lag |
p0 |
The P-value cut-off |
kmn |
Minimum number of included covariates irrespective of cut-off P-value |
kmx |
Maxmum number of included covariates irrespective of cut-off P-value |
mx |
The maximum number covariates for an all subset search |
kex |
The excluded covariates |
sub |
Logical, if TRUE best subset selected |
inr |
Logical, if TRUE include intercept if not present |
res The selected lagged variables for each variable res2 The regression coefficients and P-values res4 The residuals
data(abcq)
a<-fvauto(abcq,240,16)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.