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?
Help with changing reference category when doing a cox regressionHello, I am doing a cox regression and have a variable socioeconomic status 'ses' which I have label…
ssc cortestiI was wondering if any others agree that the Williams test implemented in the SSC program cortesti m…
Append/ merge datasetsI am using survey data which i was able to download for each year directly into stata. However i wan…
xtlogit does not converge (not concave)Dear Statalist I'm having difficulties trying estimate the following model working with panel data …
how to use color to differentiate the two groups? Code: set scheme s2mono * Example generated by -dataex-. To install: ssc install dataex clear inp…
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