Hi everyone,
I have two variables measured in units of 'days', i.e., for how many days an individual did the thing measured by the variable. Then, for another variable, I only have the hours that an individual did another activity. I need these to be comparable, and thus, in the same units. Is it possible somehow to change days to hours, or hours to days? So that all three can be the same?
I asked a professor and they told me that it can be done either through a principal component analysis or through converting each variable to a score. I do not know how either of these can be done in STATA. Can someone help?
Thank you!
Related Posts with Changing Variables to Same Units
producing new variable based on the mean of three variablesHi, I would like to calculate the mean of systolic blood pressure based on three observations for e…
Extract data from 1000 regression tablesHi, I am using this command below for 1000 variables as an outcome. foreach outcome of varlist B-A…
How can I calculate the turning point of a moderator at given values in Stata?Hi all, here is the example, please run it in Stata, and ignore the issue of significance. Code: *…
Drop duplicates depending on two variablesHi, I am totally new to Stata (Version 17.0). I´ve got a data set icluding the variables ticker (so…
Sargan test P value = 0 meaningHi What does a sargan test p value = 0 imply? does it mean my instruments are valid? I read that sa…
Subscribe to:
Post Comments (Atom)
0 Response to Changing Variables to Same Units
Post a Comment