Hi all,
New Statalist user here with a simple question (I'm a long time Stata user who is trying to learn to use tables). I am trying to create a table with contrast estimates after running a regression model. MWE below:
clear all
sysuse auto.dta
reg price i.foreign##i.rep78 mpg
collect get, tag(model[]): margins r.foreign , at(rep78=(1(1)5)) asobserved
collect levelsof model
collect style header result, level(hide)
collect layout (colname#result[_r_b]) (model)
The problem: I want to replace the row headers (e.g., (Foreign vs Domestic) @ _at=1, (Foreign vs Domestic) @ _at=2, ...) with custom strings of my choosing such as "Row 1", "Row 2", etc.
Is there a simple way of doing this?
Any help would be welcome.
Thanks!
Matthew
Related Posts with Contrast tables
Event study with Bitcoin and stock prices: How should I approach non-trading days?Hi everyone, I am trying to run a basic event study using daily Bitcoin returns and the S&P500 …
Negative Binomial regressionI have number of children as count variable which I am regressing on the log of parent's income. How…
ARDL short run coefficientDear community, I am coming back to you because I have a small problem concerning the estimation of…
Avoiding dummy variable trap using "tab, gen" commandHello everyone, I created year dummy variables for my dataset using the command tab YearEffective,…
PPML R-squared to highHi, I estimated a gravity model with the PPML estimator and fixed effects. However, the R-squared i…
Subscribe to:
Post Comments (Atom)
0 Response to Contrast tables
Post a Comment