Description Usage Arguments Value
View source: R/cross_validation.R
The cross validation data file (cv_data) must already exists in the analysis directory and the input variable name, var_name, must be a variable in cv_data.
1 2 3 4 5 6 7 | load_best_univariate_model(
data_dir,
analysis_name,
var_name,
fold = NA,
load_data = FALSE
)
|
data_dir |
Directory to save univariate model parameters |
analysis_name |
analysis_name for file-naming |
var_name |
The variable name for the model to load |
fold |
Fold number. If NA, pull from main solution. |
load_data |
Whether to also load the data vector (x and y) (default: FALSE) |
A list with the parameter vector (th_y), model specification (mod_spec). If load_data is TRUE, the data vectors (x and y) are also in the list.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.