Hi,
I'm trying to calculate economic significance from a censored (Tobit) regression with multiple imputation according to this definition:
"Economic significance is indicated by the predicted change in the dependent variable from a movement from the tenth to the ninetieth percentile in the independent variable as a percentage of the mean of the dependent variable".
So far I have the following code (with y being my dependent variable, and x being my independent variable(s)):
mi register y x
mi impute mvn y x, add(10)
mi estimate, cmdok post: tobit y x, ll(0) ul(1) vce(robust)
I have tried using the following code (which works without mi estimate) immediately after the above:
sum y, meanonly
local y=r(mean)
margins, expression(predict(ystar(0,1))/`y_m') at((p10) x) at((p90) x) contrast(atcontrast(ar._at) marginswithin) atmeans
But I get the error:
e(sample) does not identify the estimation sample
Any help would be very much appreciated! :-)
Best regards,
Valdemar
Related Posts with Calculate economic significance for censored (Tobit) regression with multiple imputation
Mixed vs fixed effects linear regression modelsDear all, I would like to thank you in advance, I am a new user of Stata and I have some trouble ana…
master dofile won't run through, despite the dofiles referred to do (if run manually)Hi guys. I wonder if somebody has experienced the following: A master dofile referring to several d…
Code: Add Variable with Ideal lower and higher numerical values in Panel datasetHello, Could any one of your please help me with coding to add a new variable to the existing datas…
Support of using Epi Week for Time Series AnalysisI converted a date variable into Epi Week / Morbidity that will used in Time Series analysis using e…
Drawing a sample from dataset.Hi everyone, I have dataset on enterprises which are categorized by sectors and regions. I wanted to…
Subscribe to:
Post Comments (Atom)
0 Response to Calculate economic significance for censored (Tobit) regression with multiple imputation
Post a Comment