cleanup: cleanup data.frames

Description Usage Arguments Value

Description

Function to exclude (factor or interval) variables that have too many levels (as they may cause numerical problems), to change binary factors to 0-1 coding (as such factors might generate linear dependent variables) and to remove multiple intercepts.

Usage

1
cleanup(X, k = Inf)

Arguments

X

A n times p data.frame with p fixed (or random) effects variables.

k

An integer defining the allowed maximum of levels in a factor covariate.

Value

A n times (p-r) data.frame, with r being the number of variables with too many factors.


hmi documentation built on Oct. 23, 2020, 7:31 p.m.