DATA Step, Macro, Functions and more

Creating deciles based on two variables

Accepted Solution Solved
Reply
New Contributor
Posts: 2
Accepted Solution

Creating deciles based on two variables

I am new to sas and am attempting to create deciles based on some variables for a class project. Our first (most important) variable only has values of 0,1,2, and 3, so we’ve added a second continuous variable to be able to create deciles. Proc rank does not seem to allow us to use two variables to create deciles, so what code can we use to accomplish this?

Accepted Solutions
Solution
‎04-07-2018 06:04 PM
New Contributor
Posts: 2

Re: Creating deciles based on two variables

Posted in reply to enlamparter

I’ve decided to approach the problem another way and no longer need a response. Thank you!!

View solution in original post


All Replies
SAS Moderator
Posts: 69

Re: Creating deciles based on two variables [how to improve your question]

Posted in reply to enlamparter

Hello @enlamparter,


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.

 

This prewritten response was triggered for you by fellow SAS Support Communities member @mkeintz

.
PROC Star
Posts: 629

Re: Creating deciles based on two variables

Posted in reply to enlamparter

Provide with some example data in the form of Data Step and your  result output. 

Thanks,
Suryakiran
Solution
‎04-07-2018 06:04 PM
New Contributor
Posts: 2

Re: Creating deciles based on two variables

Posted in reply to enlamparter

I’ve decided to approach the problem another way and no longer need a response. Thank you!!

☑ This topic is solved.

Need further help from the community? Please ask a new question.

Discussion stats
  • 3 replies
  • 198 views
  • 0 likes
  • 3 in conversation