Hello Stata-Experts,
I am trying to estimate a left-censored random-effects Tobit Model with cmp, but I do have a couple of questions on how to set it up correctly.
Dataset: I am using a panel dataset with 500 households over 100 weeks, each household having a binary indicator for each week (1, if a purchase has happened, 0 else) and a continuous variable of spendings in $, if a purchase has happened.
I have used the following command
Now, I do have a couple of questions regarding cmp and the way the random effects models work:
1. I was under the impression, that when I use redraws(#), Simulated Maximum Likelihood according to Train (2009) is used. According to the cmp documentation, redraws "sets the number of draws per observation at each level". Level here refers to each equation in "cmp () ()", right? In the case above that would be 500 households x 100 weeks x 2 equations = 50,000 x 50 x 2 draws. According to the implementation Train provides on his Website (https://eml.berkeley.edu/~train/software.html), draws should be drawn per class (here: 500 households x 50 draws). Is it possible to obtain the latter?
2. The table with results only shows me the coefficients of variables specified on the left side of the || operator. I would expect a mean coefficient and its standard deviation for parameters specified via "|| household: number pi". Am I missing something in the cmp command?
Thank you very much for your help!
I am trying to estimate a left-censored random-effects Tobit Model with cmp, but I do have a couple of questions on how to set it up correctly.
Dataset: I am using a panel dataset with 500 households over 100 weeks, each household having a binary indicator for each week (1, if a purchase has happened, 0 else) and a continuous variable of spendings in $, if a purchase has happened.
I have used the following command
Code:
cmp (incidence = number inventory pi season_xmas season_q2 season_q3 season_q4 season_2018 season_2019 || household: number pi) (spendings = number inventory pi season_xmas season_q2 season_q3 season_q4 season_2018 season_2019 || household: number pi), ind($cmp_cont, $cmp_left) cl(household) redraws(50)
1. I was under the impression, that when I use redraws(#), Simulated Maximum Likelihood according to Train (2009) is used. According to the cmp documentation, redraws "sets the number of draws per observation at each level". Level here refers to each equation in "cmp () ()", right? In the case above that would be 500 households x 100 weeks x 2 equations = 50,000 x 50 x 2 draws. According to the implementation Train provides on his Website (https://eml.berkeley.edu/~train/software.html), draws should be drawn per class (here: 500 households x 50 draws). Is it possible to obtain the latter?
2. The table with results only shows me the coefficients of variables specified on the left side of the || operator. I would expect a mean coefficient and its standard deviation for parameters specified via "|| household: number pi". Am I missing something in the cmp command?
Thank you very much for your help!
Comment