Learn R Programming

TrialEmulation (version 0.0.4.2)

te_parsnip_model-class: Fit Models using parsnip

Description

The classes and (internal) methods defined for using parsnip to fit the weight models.

Usage

# S4 method for te_parsnip_model
fit_weights_model(object, data, formula, label)

Arguments

object

The object determining which method should be used, containing any slots containing user defined parameters.

data

data.frame containing outcomes and covariates as defined in formula.

formula

formula describing the model.

label

A short string describing the model.

Functions

  • fit_weights_model(te_parsnip_model): Fit the weight models object via calculate_weights on trial_sequence

Slots

model_spec

A model specification defined with the parsnip package.

See Also

Other model_fitter_classes: te_stats_glm_logit-class