Description Usage Arguments Value
View source: R/data_preparation.R
A function to estimate principal components.
1 | data_reduction(Data, variables = NULL, ncomp, standardize = TRUE)
|
Data |
data.frame: data frame of target variable, exogenous variables, and observed date (named 'date') |
variables |
string: vector of variables to standardize, default is all but 'date' column |
ncomp |
int: number of factors to create |
standardize |
boolean: normalize variables (mean zero, variance one) before estimating factors |
data.frame with a date column and one column per forecast method selected
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.