load_best_univariate_model: Load the best univariate model using saved univariate...

Description Usage Arguments Value

View source: R/cross_validation.R

Description

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.

Usage

1
2
3
4
5
6
7
load_best_univariate_model(
  data_dir,
  analysis_name,
  var_name,
  fold = NA,
  load_data = FALSE
)

Arguments

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)

Value

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.


MichaelHoltonPrice/yada documentation built on Sept. 19, 2021, 11:27 p.m.