Dear all, I am struggling with the following issue: I would like to put in table the results of a number of models, but I am interested in having in the table only the coefficients for some selected categories of just one variable I include in my model (in my case, categories 4 and 5 of the variable car_groups).
I think I should exploit the option -keep-, but whit the following command:
I receive the error:
Do you have any clue on why? In the regression table the coefficients associated to the different categories of the variable car_groups are indeed estimated and shown...
here my data
Any help would be really appreciated.
Best, Giorgio Piccitto
I think I should exploit the option -keep-, but whit the following command:
Code:
reg city i.car_groups if region == 1 estimates store m1 esttab m1 using "", cells("b ci_l ci_u") replace keep(car_groups) reg city i.car_groups i.age if region == 1 estimates store m2 esttab m2 using "", cells("b ci_l ci_u") append keep(car_groups)
Code:
coefficient car_groups not found
here my data
Code:
clear input float(city car_groups) int age float region 0 1 51 3 1 1 40 3 1 1 61 3 0 1 62 3 0 3 47 3 0 3 46 3 0 1 19 3 1 3 58 3 0 1 58 3 0 5 46 3 end label values car_groups car_groups label def car_groups 1 "a", modify label def car_groups 3 "c", modify label def car_groups 5 "e", modify label values age age_VL label values region region
Any help would be really appreciated.
Best, Giorgio Piccitto
Comment