Simulate parameters of a tobit model
I got an email, asking me if our arm package can simulate tobit model to get simulated parameters. Indeed, arm does not suport tobit model. It only support sim() for lm, glm and mer classes in R. But it is not difficult to get a tobit verison of sim(). Here are the steps:1. fit a tobit (or double tobit) mode.library(AER)M1 <- tobit(y ~x) 2. get the coefficient vector.beta <- coef(M1) 3.
To leave a comment
for the author, please follow the link and comment on their blog: Yu-Sung Su's Blog
offers daily e-mail updates
news and tutorials
on topics such as: visualization (ggplot2
), programming (RStudio
, Web Scraping
) statistics (regression
, time series
) and more...
If you got this far, why not subscribe for updates
from the site? Choose your flavor: e-mail
, or facebook