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-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

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