Skip to contents

Reorder and encode covariates into the internal mixed-data layout

Usage

groom_did_covariates(data, continuous = NULL, unordered = NULL, ordered = NULL)

Arguments

data

Data frame or matrix containing the covariates.

continuous

Character or integer vector identifying continuous columns.

unordered

Character or integer vector identifying unordered discrete columns.

ordered

Character or integer vector identifying ordered discrete columns.

Value

A list with:

  • covariates: matrix ordered as continuous, unordered, ordered

  • dim_covariates: length-3 integer vector

  • block_names: column names by block