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.
0 Response to How to store p-value and CI in a new variable in prais-winsten regression?
Post a Comment