Hello,
I am looking at the impact of deficit on an outcome variable (Spending). All variables are positve in my datset, except for deficit. People can sometimes have a deficit in their spending (postive value of deficit), or surplus (negative value). I wanted to take natural logs of these variables. However, taking a natural variable makes no sense if I have a surplus (negative value). Does anyone have suggestions?
Thank you
Related Posts with log of negative value
Compare parts of a stringDear statalists, I wanted to keep this question separate from the last topic where it was about ord…
How to make a loop continue working if a variable it is not found?Hello. I am trying to generate graphs from some variables. I do not have all possible combinations …
Looping through two different sets of valuesI have data from several years. Each is stored in a file entitled "year 1" "year 2" .... "year 8". T…
nwcommands "invalid" errorHello, I just discovered the nwcommands in stata for network analysis. This will make life so much e…
real salary matrix calculationHi all, I would like to generate a matrix that contains in the first column the average of a variab…
Subscribe to:
Post Comments (Atom)
0 Response to log of negative value
Post a Comment