updateLP: Update linear predictors

Description Usage Arguments Examples

Description

Update linear predictors of a lvm object

Usage

1
2
3
4
lp(x, ...) <- value

## S3 replacement method for class 'lvm.reduced'
lp(x, lp = NULL, ...) <- value

Arguments

x

lvm-object

...

additional arguments to be passed to the low level functions

value

the value that will be allocated

lp

the name of the linear predictors to be updated

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## regresssion
m <- lvm.reduced()
m <- regression(m, x=paste0("x",1:10),y="y", reduce = TRUE)

newLP <- lp(m, type = NULL)[[1]]
newLP$link <- newLP$link[1:3]
newLP$con <- newLP$con[1:3]
newLP$x <- newLP$x[1:3]

lp(m, lp = 1) <- newLP
lp(m, type = NULL)

bozenne/lavaReduce documentation built on May 24, 2019, 3:05 a.m.