BookmarkSubscribeRSS Feed
☑ This topic is solved. Need further help from the community? Please sign in and ask a new question.
NewUsrStat
Lapis Lazuli | Level 10

Hi guys, I'm working with two data sets. In both cases I have to work with the age (I have to correct the regression for the presence of covariates) but in the first data set I have the age variable as a  continuous variable while in the second case I have classes. Is there a way to convert classes of age into a continuous variable? This is totally new for me. 

 

Thank you in advance

1 ACCEPTED SOLUTION

Accepted Solutions
fja
Lapis Lazuli | Level 10 fja
Lapis Lazuli | Level 10

Hello!

If you only have classes and there is no further information then there are only crude ways left, like substituting a representative/mean age for each level.

--Fja

View solution in original post

2 REPLIES 2
andreas_lds
Jade | Level 19

Hardly possible to convert "Age 20-30" to an actual age. At least not without guessing.

fja
Lapis Lazuli | Level 10 fja
Lapis Lazuli | Level 10

Hello!

If you only have classes and there is no further information then there are only crude ways left, like substituting a representative/mean age for each level.

--Fja