checkData: Check that validity of the dataset

Description Usage Arguments Examples

Description

Check the validity of the dataset used to estimate a lvm.

Usage

1
2
3
4
checkData(x, data, ...)

## S3 method for class 'lvm'
checkData(x, data, ...)

Arguments

x

a lvm model

data

the dataset containing the variables used to estimate the lvm.

...

not used

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
m <- lvm()
regression(m) <- c(y1,y2,y3)~u
regression(m) <- u~x
latent(m) <- ~u

d <- sim(m,1e2)

try(checkData(m, d)) # return an error

checkData(m, d[,-4])

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