clean.penalty: Simplify a lvm object

Description Usage Arguments Details Examples

Description

Remove variables with no link and simplify the class of the lvm object

Usage

1
lavaPenalty.clean.hook(x, simplify.penalty = TRUE, simplify, ...)

Arguments

x

lvm.penalized-object

simplify.penalty

should the class lvm.penalized be droped if there is no penalty in the object?

simplify

should the class of the object be simplified ? Overwrite the simplify.x arguments.

...

additional arguments to lower level functions

Details

simplify means remove the class "lava.penalized" if no linear predictor is in the object.

Examples

1
2
3
4
5
6
7
8
9
m <- lvm(Y ~ X1 + X2)
pm <- penalize(m)
pm

cancelPenalty(pm) <- Y~X1
cancelPenalty(pm) <- Y~X2
pm

clean(pm)

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