Hello Everyone,
Please how do I use refcat to simultaneously indicate the reference (omitted) category of a categorical variable and add a row with a title for a group of variables (for example, Age for 1-9, 10-19 etc)? Here's what I'm trying to do.
I have three models as follows:
I use refcat to indicate the reference category for the variable i.foreign and i.rep78:
Which works.
But attempting to create headings for i.foreign and i.rep78 using the code below does not work. Rather, it undoes the previous step.
I tried combining the two procedures in the same refcat() statement below, but this gives only the reference categories in the output.
I'll appreciate help on this. It seems like something very basic: I'm probably not saving or replacing one thing or another. Unfortunately I've been unable to figure out what's wrong.
Thanks
Please how do I use refcat to simultaneously indicate the reference (omitted) category of a categorical variable and add a row with a title for a group of variables (for example, Age for 1-9, 10-19 etc)? Here's what I'm trying to do.
I have three models as follows:
Code:
sysuse auto xi: reg price mpg est store A xi: reg price mpg i.foreign i.rep78 est store B xi: reg price mpg i.foreign i.rep78 displacement est store C
Code:
esttab A B C, refcat(_Iforeign_1 "Domestic" _Irep78_2 "One")
But attempting to create headings for i.foreign and i.rep78 using the code below does not work. Rather, it undoes the previous step.
Code:
esttab A B C, refcat(Domestic "Car type" One "Manufacturer")
Code:
esttab A B C, refcat(_Iforeign_1 "Domestic" _Irep78_2 "One" Domestic "Car type" One "Manufacturer")
Thanks
Comment