lp: Extract the linear predictors

Description Usage Arguments Examples

Description

Extract the linear predictors of a lvm object

Usage

1
2
3
4
5
lp(x, ...)

## S3 method for class 'lvm.reduced'
lp(x, type = "name", lp = NULL, format = "vector",
  ...)

Arguments

x

lvm-object

...

additional arguments to be passed to the low level functions

type

slot to be return. Can be "link", "x", "con", "name"

lp

which linear predictor to consider

format

should the results be kept as the list or returned as a single vector

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
## regresssion
m <- lvm.reduced()
m <- regression(m, x=paste0("x",1:10),y="y", reduce = TRUE)
lp(m)
lp(m, type = c("x","link"), format = "list2")
lp(m, type = NULL)

## lvm
m <- lvm.reduced()
m <- regression(m, x=paste0("x",1:10),y="y1", reduce = TRUE)
m <- regression(m, x=paste0("x",51:150),y="y2", reduce = TRUE)
covariance(m) <- y1~y2

lp(m)
lp(m, type = "x", format = "list")
lp(m, lp = 1, type = "link")

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