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
qreg converges in Stata/IC 15.0 (& gives reasonable standard errors), but fails to converge in Stata/MP 17.0Dear All, I have a household-level dataset of 511,877 observations, and run a quantile regression o…
Restrict AxisI would like to restrict the x and y axis of a graph that was made using the following command; sca…
Wildcards with noccurHi there, Can I use wildcards with the egen function noccur? If not, is there another way to use wi…
Nested loop question (index changes for every loop)Hi, Thanks very much in advance for your time. I want make the following commands into the nested lo…
Suest command with more than 300 modelsHi all, I'm estimating arond 1000 models where the only thing that changes is the dependent variabl…
Subscribe to:
Post Comments (Atom)
0 Response to linear regression
Post a Comment