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
Handling duplicatesHello, This is my first post here and I am generally new to Stata, but I'll try to formulate my con…
filling in missing values backwards based on growth rateDear all, I am currently working with a country-year panel data set where I have employment shares …
Date formatHello, In the dataset, the date is in format : Code: 2015 - 07 - 01 00:00:00 2016 - 01 - 01 00:00…
Stata 16: Is it not possible to have BOTH the 'Variables' and 'History' windows be visible?It's a minor inconvenience--and perhaps I'll get used to it--but I still like how earlier versions o…
Rename after reshape long to wideHi, I changed the data format from long to wide (variable 'binary') and the data is in form: Code…
Subscribe to:
Post Comments (Atom)
0 Response to Delta method to
Post a Comment