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
egen problemHi list, I want to generate a variable that equals the mean of the values of the first two nonmissi…
New to stata, Impossible problem for a summary table?Hello all- I'm so glad I found this forum! I've just started working with stata for a biostats class…
Assigning colors to stacked bar plot with ordinal y-variable.Dear Forum, I would like to plot a stacked bar graph of an "outcome" over hiv status (positive vs. …
"Encode" a String with another String?Hello: I am trying to create a long code list where var1 is a string and what it should represent is…
Diff in diff: Fix data for one-to-one matching propensity scoreI have a data set of companies with the date they were acquired by a business group and a control gr…
Subscribe to:
Post Comments (Atom)
0 Response to Calculate economic significance for censored (Tobit) regression with multiple imputation
Post a Comment