Hello!
I am attempting to analyse some panel data using fixed time effects.
I understand that if a variable has negative values, then I need to add a value to it so that the minimum value is over 0, ideally 1.
If the minimum value for my variable polgov is -0.795, would this code be correct?
Thank you in advance!
I am attempting to analyse some panel data using fixed time effects.
I understand that if a variable has negative values, then I need to add a value to it so that the minimum value is over 0, ideally 1.
If the minimum value for my variable polgov is -0.795, would this code be correct?
Code:
sum polgov gen ln_polgov = ln(polgov + 2)
Code:
* Example generated by -dataex-. For more info, type help dataex clear input float polgov .10911667 .10536623 .07698596 .001213237 -.010889966 -.0015461458 -.0009272145 -.01928202 -.011525432 -.002667901 -.0031931796 -.011856452 -.008800886 -.0015845464 .0022473426 .03493692 .02719913 .029458277 .0385677 .033481546 .007932514 .003868169 .7951179 .8537826 .944502 .5450747 .326949 .5163905 .5661585 .536807 .6214488 .6437451 .6830839 .6002622 .5370712 .4841655 .4619964 .4728099 .4134577 .4179388 .5501199 .4571055 1.4858947 .9762693 .6410073 .68331 .54647344 .3377216 .3951 .2024828 .19571774 .1267215 .2077846 .20950356 .21788646 .1908137 .29480013 .18010856 .2088807 .15212043 .14043501 .20639417 .1195842 .12359986 .13942388 .13340275 .13742124 .3107648 .2214064 .25246823 .2181802 .23354974 .2127226 .22437154 .24474743 .31228 .29674697 .2750496 .2989097 .2783753 .22762804 .2396685 .3495828 .3508159 .02182449 -.02079328 .020043815 -.10097527 -.06281429 -.1105917 -.005623568 .0003969337 .02193683 -.015747579 -.032890383 -.015334428 .02742178 .015209296 .00904563 -.0008843911 end
Comment