Hi I ran the following mixlogit (with 409 individuals expanded 12 = 4908 observations)
mixlogit choice_best crrasq, rand(sum_insured weather_d sq premium deductible) group(id_card) id(id) nrep(500) burn(15)
And saved the coefficients with the following code:
mixlbeta premium deductible sum_insured weather_d sq crrasq, nrep(500) saving(mixlcoef) replace
It saves the coefficients with the names identical to variable names, and the number of observations now is only 4009 (that is good). It identifies the individual with id.
Now I want to merge the saved coefficients into original data. The problem here is the names of variables in the original data and the names of saved coefficients in the merging data are identical. And also, original data set is expanded and saved one is not. Both have id as a same variable for identifying the individuals while merging.
Can anyone help me get through this issue? Would be extremely grateful.
Related Posts with Merging
Pie ChartHi, I want to create a pie chart in the same way like in the link below https://imaa-institute.org/…
Panel regressionHello, I have some doubts about panel regression in fixed effects: 1) When I run fixed effects sho…
How to Create Pie ChartHi, I want to create a pie chart in the same way like in the link below https://imaa-institute.org/…
Not able to convert string to date using date()Hi, I am having trouble converting a string to a date. I have imported an excel file, and have a v…
Testing overidentification with categorical covariatesHi everyone, I am using Stata Version 14.2 and currently run a 2SLS Regression using the ivprobit c…
Subscribe to:
Post Comments (Atom)
0 Response to Merging
Post a Comment