Dear STATA helpers,
I am trying to save regression coefficients by each date and group for the entire sample period (2006 to 2019).
What I am trying to use is "statsby", but I've only used with each date before and never used it for each date and group together.
So, what I really need to have is:
1) saving regression coefficients for each date and group for 14years of daily data.
2) to do 1) without clearing the original dataset that I ran the regressions on.
I currently have :
------------------------------------------------------------------
statsby _b _se e(r2_a) e(N) , by(group) clear: reg AC K K2
foreach var in K K2 { gen t_`var' = _b_`var'/_se_`var'
}
------------------------------------------------------------------
then the results are as you expected, only creating variables by group (not both by each group and date) and also clears my original dataset.
Can you please make comment below with some ideas and answers for me?
Thank you and I look forward to seeing your comments soon.
Related Posts with "Statsby" questions - If someone could help me with this, would be much appreciated.
How to plot overlaying normal distributionsHi all, I'm trying to do something for which I can't really find any previous posts. Basically, I w…
Does STATA REG provide test statistic for Fitness of model and/or homogeneity of residuals and or misspecification?Hello everyone, Does STATA REG provide test statistic for Fitness of model and/or homogeneity of re…
Simulations: Flat log likelihood encountered, cannot find uphill directionDear community, I am trying to see how many times using the Box-Jenkins methodology I select the cor…
Reshape problem: values of variable j not unique within idHi all, I am trying to generate Dummy variables from a question with multiple responses. Lamentably…
Encountering an error when using local macros in the xtqreg packageGood Evening, I am attempting to pass a varlist into a local macro as follows: Code: local predic…
Subscribe to:
Post Comments (Atom)
0 Response to "Statsby" questions - If someone could help me with this, would be much appreciated.
Post a Comment