lava.tobit: Estimation and simulation of probit and tobit latent variable...

Description Author(s) Examples

Description

Package: lava.tobit
Type: Package
Version: 0.4-5
Date: 2012-03-15
License: GPL-3
LazyLoad: yes

Author(s)

Klaus K. Holst Maintainer: <[email protected]>

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
library(lava.tobit)
m <- lvm(list(c(y,z) ~ x, y~z))
## Simulate 200 observation from path analysis model
## with all slopes and residual variances set to 1 and intercepts 0:
d <- sim(m,200,seed=1)
## Dichotomize y and introduce censoring on z
d <- transform(d, y=as.factor(y>0), z=Surv(z,z<2))

e <- estimate(m,d,control=list(trace=1),estimator="gaussian")
effects(e,y~x)

lava.tobit documentation built on May 2, 2019, 3:26 p.m.