If I run estimates table immediately after I fit a model, the output shows the correct value labels; however, if I store the estimate, fit another model, and then try to use estimates table with the stored estimate corresponding to the first model, the value labels are lost.
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input double ped_slight_inj float season byte weather_conditions 0 2 1 0 2 1 0 2 1 0 2 1 0 2 1 0 2 1 0 2 1 0 2 1 0 2 1 0 2 1 0 1 1 1 1 1 0 1 2 0 1 1 0 1 1 0 1 1 0 1 2 0 1 1 0 1 1 0 1 1 end label values season season label def season 1 "Winter", modify label def season 2 "Spring", modify label values weather_conditions weather_conditions label def weather_conditions 1 "Fine", modify label def weather_conditions 2 "Raining", modify // First regression qui logit ped_slight_inj i.season // Store first regression est store season // First estimates table estimates table season // Second regression qui logit ped_slight_inj i.weather_conditions // Second estimates table from stored result of first regression estimates table season
0 Response to Different output from estimates table when using stored estimates
Post a Comment