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
stset survival analysis error message: variable _d already definedHi StataList, I'm trying to use the stset command for survival analysis: Code: stset failure1_day…
predictnl after reghdfeHello, I am using Stata 17 with predictnl version 1.8.2 and reghdfe version 6.12.2. I try to estim…
Help understanding behavior of space in graph codeHello... I had a student run into a problem creating a graph when trying to apply a scheme...it wou…
Heckman two-step can not cluster standard errorsDear Statalists, My dependent variable is y2_ft in the second stage of heckman selection model, f d…
stset with condition | Issue with codeWhat is wrong with my stset? I am excluding duplicates with the dupdrops variable for outcome analys…
Subscribe to:
Post Comments (Atom)
0 Response to Add summary statistics in a graph
Post a Comment