Skip to contents

Helper function to create model matrices for categorical ILVs

Usage

generate_X_matrix(ilv_vector, ilv_name, n_levels)

Arguments

ilv_vector

c() of ILV values

ilv_name

name to use for column

n_levels

number of levels in factor

Value

matrix of size N,L-1 where L=num levels