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 

... 
Additional arguments parsed to lowerlevel functions 
var 
Formula or vector of variable names 
value 
Formula or vector of variable names 
This function sets the status of variables to 'binary'. For use with the
estimate
method a probitlink 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.