pre_dummy_code: Function that converts categorical temporal predictors into...

pre_dummy_codeR Documentation

Function that converts categorical temporal predictors into dummy variables

Description

Note that you can you can use this to dummy code variables with numerical values where the values are supposed to map to categorical levels (e.g, 1 means high and 2 means low).

Usage

pre_dummy_code(
  time_frame = NULL,
  numeric_threshold = 0.5,
  variables = NULL,
  save_time_frame = TRUE
)

Details

Either provide a threshold (defaults to 0.5) or provide a vector of variables. If you supply a vector of variables, this takes precedence over the numeric threshold.


ML4LHS/gpmodels documentation built on Feb. 1, 2024, 8:31 a.m.