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

sas-innovate-white.png

Register Today!

Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9.

 

Early bird rate extended! Save $200 when you sign up by March 31.

Register now!

Mastering the WHERE Clause in PROC SQL

SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 2 replies
  • 578 views
  • 1 like
  • 3 in conversation