BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
pksubedi
Calcite | Level 5

 About 300 data are grouped by two character variables, which must recode to numerical (for example two nominal values 1 and 2) to run statistical analysis. I would be very grateful if anyone could advise me how to write syntax in SAS programming.

Thanks

 

1 ACCEPTED SOLUTION

Accepted Solutions
PaigeMiller
Diamond | Level 26

Most SAS procedures can work with character variables, and so for most analyses, SAS does not require you to change character variables into numeric simply to run statistical analyses.

 

So what analysis are you planning on doing?

 

 

 

--
Paige Miller

View solution in original post

2 REPLIES 2
PaigeMiller
Diamond | Level 26

Most SAS procedures can work with character variables, and so for most analyses, SAS does not require you to change character variables into numeric simply to run statistical analyses.

 

So what analysis are you planning on doing?

 

 

 

--
Paige Miller
Kurt_Bremser
Super User

Welcome to the communities!

 

If you want code for your data, you must present your data in usable form (data step with datalines, posted in a code box).

sas-innovate-wordmark-2025-midnight.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. Sign up by March 14 for just $795.


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
  • 523 views
  • 0 likes
  • 3 in conversation