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
low Cronbach's alphaHi, I am currently in the initial stage of my research and don't have much experience in statistica…
Date format issueHi Is there a way to convert dates that have a format such as September 13 2005 to a date variable …
xtline graphical questionDear All, I have the following code Code: use "dta\cf_index.dta", clear keep if year > 1965 en…
How to treat missing dataHi, I am using panel data with the variables Stock_id, date2, price, revenue_M, DE, and TA_M where p…
Levelsof questionHi, I am trying to understand how levelsof works. - is it possible to use local labels as labels fo…
Subscribe to:
Post Comments (Atom)
0 Response to linear regression
Post a Comment