Description Usage Arguments Details Value Author(s)
Defines variables of a latent variable model
(lvm
-object from the lava
package) as binary.
1 2 3 4 |
x |
|
var |
Formula or vector of variable names |
value |
Formula or vector of variable names |
... |
Additional arguments parsed to lower-level functions |
This function sets the status of variables to 'binary'. For
use with the estimate
method a probit-link will be
assumed. Used with the sim
method normal distributed
data will be simulated followed by thresholding at 0. To
simulate data where the dichotomous variable has a direct
effect on the outcome the distribution
method can be
used, e.g. distribution(m,~x) <-
binomial.lvm("probit")
.
lvm
-object (or vector of variable names if called
without any arguments)
Klaus K. Holst
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.