Hey,
I am plotting the graph of an event study. I want to plot in the graph some information like the mean of the dependent variable, the avg effect of the treatment, etc.
For example, suppose I have the following depend variable:
set obs 100
gen dep_var = rnormal()
I would like to run:
mean dep_var
matrix mean = e(b)
and plot the following in the graph:
Mean depend variable = -.1053
Where I use the matrix "mean" to obtain the value that is plotted.
There is a way to do that?
Related Posts with Add summary statistics in a graph
Random Effects with time Fixed Effects for Probit modelHello, I am wondering the description on the probit model with firm-level random effects and time fi…
Lassologit errorHello everyone, I am having the following error when running lassologit Code: lassologit loan_clo…
Margins after xtnbreg, fe exposure()Hello, I am running negative binomial regression on panel data of counts (panel = county, time = da…
Stata stationarityHello guys, I am currently trying to train myself on non-stationarity, seen as I will probably have…
How to combine summary stats and regression tables in StataI am interested how some variables differ by gender. I want to create a table showing the means and …
Subscribe to:
Post Comments (Atom)
0 Response to Add summary statistics in a graph
Post a Comment