renameFactor: Link levels and coefficients

Description Usage Arguments Examples

Description

Find the categorical variable matching the name of the coefficient in lava

Usage

1
renameFactor(var, ls.levels, data, sep = "")

Arguments

var

the name of the coefficient (binary indicator)

ls.levels

a named list containing the levels for each variable

data

the dataset used to find the possible categorical/factor variables

sep

the character used to collapse the variable name and its levels in var

Examples

1
2
3
4
## Not run: 
lavaSearch2:::renameFactor("x2C", ls.levels = list(x1 = 1:5, x2 = c("A","B","C")))

## End(Not run)

bozenne/lava.penalty documentation built on May 13, 2019, 1:41 a.m.