Hi all,
I conducted a linear regression where the dependent variable (measured as a percentage) is squared root transformed. The independent variables are categorical.
See below for the syntax
generate sqrtdepend=sqrt(dependent)
regress sqrtdepend i.indep1 i.indep2 i.indep3 i.indep4
Now I want back transform the coefficients relative to a predetermined reference level of the dependent variable so that the effect estimates can be directedly compared between variables (the reference value of the dependent variable is 30%).
The formula to do this is below.
2β*301/2 + β2
* β (regression coefficients) refer to differences in square-root values
Any help on how to write the syntax in stata for the above formula?
Thanks in advance for your help.
Related Posts with linear regression
Cleaning for missing observations (cross-sectional data) for a range of variablesDear all, I have a particular problem. I have a data of probability of default for 2000 entities an…
GMM with spatially autocorrelated errorsHi, I have a panel data (300 panels and 30 years) and need to estimate a GMM (difference or system …
dfmlogit multinomial fractional model compositional data analysisHi, Using Stata 13, I am running dfmlogit on the Stata dataset citybudget.dta available here use ht…
Can -stcox-* do multilevel analyses with one failure?Hi everybody, Can -stcox- do multilevel analyses with one failure?; i.e., can -stcox- take the repe…
Assigning numbers from 1 to (total number of observations) randomly to the data setHello, What is the best way to assign a random number from 1 to 413,294 (which is the total number o…
Subscribe to:
Post Comments (Atom)
0 Response to linear regression
Post a Comment