Hi,
I have a data set on tumors with the variables karnofsky index/KI (categorical with values 40, 60, 80, 90, 100) and gross tumor volume/GTV (continuous, m3), among others. I have done a linear regression showing a significant negative correlation between the two (coefficient -0.16, p 0.007).
1. I want to visualise the relationship, f.eks with a scatter plot, but as KI is categorical and GTV is continuous, it ends up looking very strange and I cannot see a linear relationship. I have transformed the GTV variable with cube root because it was very left-skewed, but KI has a normal distribution. Do I still have to transform KI to get a linear relationship?Or convert it to a continuous variable?
Array
2. I want to calculate the Pearon's correlation coefficient, but as far as I know assumptions are that the variables must be continuous and have a linear relationship. How do I solve this? By transforming one or both values?
Thanks in advance,
Best regards
Related Posts with Transformation of values
How to deal with "factor variable and time-series operators not allowed "when I run gllamm command?Hello all, How can I include dummy variables in gllamm?Or how can I change factor variales into dumm…
Dealing with missing dataHi, I use the following equation for calculating return for a portfolio of stocks. gen MOMf3_p1= ( …
Define subroutine in a .do fileHi, I have a large do file that I would like to break down in several smaller pieces of code that I…
Using Foreach with loop to calculate averageHi, I want to calculate average of a variable X for all households for each 200 categories on varia…
Reshaping matched panel dataHi I am working with a panel data of firms (BvDIDnumber/BvDIDnumber_U being the unique firm ID for …
Subscribe to:
Post Comments (Atom)
0 Response to Transformation of values
Post a Comment