Description Usage Arguments Value Examples
Find the new possible links between variables (copied from lava::modelsearch)
1 2 3 4 5 6 | findNewLink(x, ...)
## S3 method for class 'lvm'
findNewLink(x, data = NULL, exclude.var = NULL,
rm.latent_latent = FALSE, rm.endo_endo = FALSE, rm.latent_endo = FALSE,
output = "names")
|
x |
a lvm model |
... |
not used |
data |
an optional dataset used to identify the categorical variables if not specified in the lvm object. |
exclude.var |
all links related to these variables will be ignore. |
rm.latent_latent |
ignore links relating two latent variables. |
rm.endo_endo |
ignore links relating two endogenous variables |
rm.latent_endo |
ignore links relating one endogenous variable and one latent variable |
output |
return the names of the variables to link ("names") or their position ("index") |
A list
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | ## Not run:
findNewLink <- lavaPenalty:::findNewLink
m <- lvm()
regression(m) <- c(y1,y2,y3)~u
categorical(m,labels=c("M","F","MF")) <- ~X1
findNewLink(m, rm.endo = FALSE)
findNewLink(m, rm.endo = TRUE)
findNewLink(m, exclude.var = "X1")
regression(m) <- u~x1+x2
latent(m) <- ~u
findNewLink(m, rm.endo = FALSE)
findNewLink(m, rm.endo = TRUE)
findNewLink(m, rm.endo = TRUE, output = "index")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.