Learn R Programming

mmrm (version 0.3.16)

h_get_minimal_fit_data: Obtain the Minimal Dataset Needed for an mmrm Fit

Description

Grab the dataset underlying an mmrm fit and select only the used columns.

Usage

h_get_minimal_fit_data(fit)

Value

A data frame: a subset of the columns the dataset underlying fit

(i.e., fit$data):

  • The response column.

  • The column denoting the visit index.

  • The column denoting the subject.

  • The column denoting the subject's grouping (e.g., study arm).

  • All other predictors not already specified.

    Columns that were not used are excluded.

Arguments

fit

(mmrm)
a fitted mmrm model.

Details

Grabs the response variable along with the predictors named in fit$formula_parts.