BookmarkSubscribeRSS Feed
vimpan7890
Calcite | Level 5

for logistic regression method I have a dataset naming variable (character) , i want to convert it in binary value . can anyone help me out . what is code in sas.

3 REPLIES 3
jklaverstijn
Rhodochrosite | Level 12

Can you provide us with some information or examples on what you have and what you want? And what you have tried sofar? Now there's very little to go by.

 

- Jan

Community_Guide
SAS Moderator

Your question requires more details before experts can help. Can you revise your question to include more information? 

 

Review this checklist:

  • Specify a meaningful subject line for your topic.  Avoid generic subjects like "need help," "SAS query," or "urgent."
  • When appropriate, provide sample data in text or DATA step format.  See this article for one method you can use.
  • If you're encountering an error in SAS, include the SAS log or a screenshot of the error condition. Use the Photos button to include the image in your message.
    use_buttons.png
  • It also helps to include an example (table or picture) of the result that you're trying to achieve.

To edit your original message, select the "blue gear" icon at the top of the message and select Edit Message.  From there you can adjust the title and add more details to the body of the message.  Or, simply reply to this message with any additional information you can supply.

 

edit_post.png

SAS experts are eager to help -- help them by providing as much detail as you can.

Ksharp
Super User

You don't need to do it.

CLASS statement of PROC LOGISTIC could do it for you .

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 3 replies
  • 1865 views
  • 0 likes
  • 4 in conversation