Hi!
I'm new to Stata! I have a database model as shown below (hypothetical data). When running Prais-winsten regression, I would like to store the p-values and confidence intervals in a new variable.
The command “ statsby, by(id): prais log10_prevame year ”, stores only the beta values in a new variable. How do I store the p-value and CI as well?
I also tested the regsave command (below) but it only stores the values of the last prais-wisten regression and not the set of regressions by id (my database is approximately 2000 id)
by(id): prais log10_prevame year
regsave, tstat pval ci
Array
I thank the help of all you.
Related Posts with How to store p-value and CI in a new variable in prais-winsten regression?
Questions with the mixlogit and lclogit commandHello everyone, I am really new to Stata, and when I use the mixlogit command by Arne R. Hole, I ge…
Orthogonalize lagged values of an independent variableDear all, I am running an xtlogit with a lagged independent variable (the variable is stationary), b…
Collapse by groups : add a total rowHi! I'm trying to add a "total" row to a data frame such that it corresponds to the sum of all my g…
how to do reg3 postestimation for simultaneous equations (cross-section data)I want to get the Hansen-Sargan test, after 3SLS, how to do it ? equations: Y1=F(Y2, Y3, X1, X2, X3,…
Stata legend: make it larger and allow for more colorsHello everyone, I am trying to make a twoway line plot with many (more than 20) overlaid lines. I ha…
Subscribe to:
Post Comments (Atom)
0 Response to How to store p-value and CI in a new variable in prais-winsten regression?
Post a Comment