kill.penalty: Remove penalty after removing a variable

Description Usage Arguments Examples

Description

Remove penalty after removing a variable

Usage

1

Arguments

x

plvm-object

var

the names of the variables that should be removed

...

not used

value

the names of the link that should be removed

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
m <- lvm()
m <- regression(m, x=paste0("x",1:10),y="y")
pm <- penalize(m)
kill(pm) <- "x7"

res <- cancel(pm, y~x1+x2)
res

res <- cancel(pm, y~x1+x2+x3)
res

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