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.