Dear Stata users,
I am using an IHS transformation for my dependent variables (different measures of wealth) as they are highly skewed, but also contain negative values. I am using the following code to do this:
*define theta (parameter in inverse hyperbolic sine function)
global theta=1
***IHS transformation
foreach var in xx xy yy{
gen `var'_ihs=(log($theta*`var' + sqrt(($theta^2)*(`var'^2) + 1)))/$theta
}
I then run multiple imputations using these transformed variables. After the imputation, I would like to 'reverse' the ihs transformation of these variables as I need to generate other variables with these imputed, back transformed variables. I am however not quite sure on how to reverse the ihs transformation in Stata. Can anyone help with this? Or has anyone got any tips on how to do this?
Thanks,
Nicole
I am using an IHS transformation for my dependent variables (different measures of wealth) as they are highly skewed, but also contain negative values. I am using the following code to do this:
*define theta (parameter in inverse hyperbolic sine function)
global theta=1
***IHS transformation
foreach var in xx xy yy{
gen `var'_ihs=(log($theta*`var' + sqrt(($theta^2)*(`var'^2) + 1)))/$theta
}
I then run multiple imputations using these transformed variables. After the imputation, I would like to 'reverse' the ihs transformation of these variables as I need to generate other variables with these imputed, back transformed variables. I am however not quite sure on how to reverse the ihs transformation in Stata. Can anyone help with this? Or has anyone got any tips on how to do this?
Thanks,
Nicole

Comment