Hello
I am using stata 14 and the mixlogit command (user install) to analyse data from a discrete choice experiment with 6 attributes. I want to estimate the marginal rate of substitution (MRS) for each of the attributes, using the budget attribute (Cbudg_fa) as the numeraire.
global randvars Cuse_d Cuse_a Cnatu Cfaun_fa Cfaun_fo Cinfo Cwork_d Cwork_a Cbudg_fa Cbudg_fo
mixlogit Choice_long, rand($randvars) group(idChoicenumber) id(id) nrep(1000)
for each attribute and observation, I calculate the individual coefficients:
mixlbeta Cuse_d, nrep(500) saving("${MYPATH}\Resultats\500\newpanel_Cuse_d.dt a") replace
Then I calculate the average marginal rate of substitution
gen MRSabs_`x'=abs(`x')/abs(Cbudg_fa)
Question 1: Is that correct to take the absolute value of the coefficient to calculate the MRSs? I am interested in the weight of each attribute, independantly from the sign of the individual coefficient
Question 2: I would like to estimate the standard errors of the MRSs. How to do that? with the delta method ?
Thanks in advance for your answers.
Best,
Marianne
Related Posts with Delta method to
Multi-column heading in outreg2Hi everyone, Using outreg2, is it possible to create a column heading that spans several columns of…
Regression output - Bug?Hi everyone, I am trying to run some old code (version 14.2) using a new Stata version (15.1) on a …
Outreg2 providing one-sided p-valuesDear Stata users, I have a question regarding the one-sided p-value in outreg2, which I use to expo…
split, parse(,) maximum number of variables reachedDear all, I'm using Stata 15 and trying to split a string variable into different component which ar…
Random dummy variable with restrictionsI have a panel dataset and want to create a random dummy variable with mean 0.2 that marks a random …
Subscribe to:
Post Comments (Atom)
0 Response to Delta method to
Post a Comment