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
Robust or Clustered Standard ErrorsDear all, I am currently examining the impact of annual average sunset time on sleep duration of ch…
Generating new variables using an if functionI am trying to sort income based on marital Status and then generate new adjusted income based on ta…
Free text processing of medical notes I am attempting to search pathology reports, which are in string format, to identify only those whi…
Adjusting the DSS Stata 'Prediction of normal returns formula'Dear Statalists, in order to be able to calculate non-parametric significance tests when doing an e…
xtlsdvc and xtbcfeHello, I am trying to fit a dynamic model determinants of corporate cash holdings for ~1700 firms a…
Subscribe to:
Post Comments (Atom)
0 Response to Merging
Post a Comment