Description Usage Arguments Value See Also Examples
Autoregressive Random Forest with random permutations for variable selection
1 2 | karma.rfpermute(y, ar_terms = NULL, seasonality = F, xreg = NULL,
plot = T, stdout = F)
|
ar_terms |
Number of lagged terms to include as features |
seasonality |
Flag to indicate seasonal or nonseasonal series (T/F) |
xreg |
Features |
plot |
Show training convergence plot (T/F) |
stdout |
Print messages to standard output (T/F) |
yt |
Univariate time series object |
Trained forest with empirical p-values
1 2 3 4 5 6 7 8 9 10 11 12 13 | yt = diff(log(JohnsonJohnson))
#Train model:
rf0 = tsml.rfPermute( y = yt, ar_terms = 15 )
#Get model p-values:
print(rf0$pval)
#Forecast:
tsml.forecast(rf0, h = 12, plot = T)
#Test 70-30:
tsml.cv(rf0, test_pct = 12, test_type = "window")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.