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
Examining -Matchit- options for improving matches based on types of string variablesI am wondering if anyone has seen any kind of examination of the various matching methods available …
Assigning set of values/names to every 1-10 observationHello, I need to assign a set of names in one particular order to the first 10 observations. I want …
Synthetic matching with Pre-Intervention Outcomes ONLYHi, I want to compare the treatment effect on the patent quantity produced by treatment and control…
Generating Disease CombinationsHi all I want help in generating all the possible combinations using 20 variables(diseases) in STATA…
Graph bar with Mean and Standard DeviationHi all, Below is an example of my dataset. I want to make two graphs one for the variable area and …
Subscribe to:
Post Comments (Atom)
0 Response to Merging
Post a Comment