Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: saving dprobit results for use in a table


From   "David Merriman" <[email protected]>
To   [email protected]
Subject   st: saving dprobit results for use in a table
Date   Sat, 30 Aug 2008 12:06:33 -0500

I would like to save dprobit coefficients to report in a table.

I tried using estimates store and then esttab [code is below] but
esstab returned the probit rather than the dprobit coefficients.

This question came up (on statalist) in 2004 and Buzz Burhans posted
some matrix code to do this but (A) the code is complicated and I
don't really understand it and (B) I am wondering if anything simpler
has developed in the meantime.

Thanks
Code I used follows

#delimit cr
foreach var of varlist $border_tax_paid_vars  {
dprobit `var' $border_inc_distance_vars $land_use_vars
$B_demographic_vars  [pw=(1/os_obs_weight)] if place==2, r
estimates store E8`var'
adjust $land_use_vars $B_demographic_vars   if place==2, pr
gen(border_pred`var')
}
#delimit ;

[code omitted]


esttab E3indiana_tax_paid E4indiana_tax_paid E3illinois_tax_paid
E4illinois_tax_paid
E3cook_tax_paid E4cook_tax_paid E3chicago_tax_paid E4chicago_tax_paid
using "C:\Documents and Settings\dmerrim\My Documents\rwj\summer
2008\stata\tables\some revised tables1.csv", noisily  replace
label star(* 0.10 ** 0.05 *** 0.01)
stats(N r2_p)b(%4.2f)varwidth(34)  modelwidth(7)
title("Estimates of marginal change in probability of each stamp"
"from a small change in each independent variable" "using data from 96
Chicago TAZ");
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index