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
Regressions by industry - quarterDear users, I hope that you may help me with the following issue. I'm running regressions by indust…
reghdfe produce coefficients with opposite signI have problem with re-producing results using the same data using reghdfe command. The version of …
Wild cluster boostrap t- CGD(2008)Hi, I am asked to write Stata command reproduce the results of Wild Cluster Boostrap T as in " Came…
Hypothesis testing between regression coefficientsHi everyone! So I created this regression table using the following commands Code: areg logincome l…
How to get R-squared in GMM regressions?Hello everyone, I am estimating Taylor rules of monetary policy using GMM and "gmm" command (Stata 1…
Subscribe to:
Post Comments (Atom)
0 Response to Contrast tables
Post a Comment