dg_collect_models: Reads and collects individual dg models from tmp folder

Description Usage Arguments Value

View source: R/dg_collect_models.R

Description

Reads and collects individual dg models from tmp folder

Usage

1
2
3
4
5
6
7
dg_collect_models(
  dataset_folder,
  model_name,
  model_averaging = "mean",
  which_test_set = 0,
  stage = "model"
)

Arguments

dataset_folder

absolute path to the dataset folder, is created if non-existent

model_name

name of the model that should be computed on the dataset

model_averaging

c("mean" [default], "median"), how to average estimated parameters over different train/test sets

which_test_set

for 0, the default, reads individual models from training/test sets, for a number greater 0, only reads models from this training/test set

stage

c("model" [default], "bootstrap", "pll"), which stage to collect models from, for bootstrap and pll stage, the functions adds their results to the dg_model.txt table

Value

returns a data.table with fitted values for all model parameters


jschmiedel/tempura documentation built on Nov. 13, 2020, 3:53 a.m.