Have you done your own search on the internet yet? What did you find?
I never heard of it, that's why you would be better off doing a search yourself.
@Suryak wrote:
variable incentive amount calculation using
Sas code
Hello, @Suryak
I point out the obvious: If you keep repeating the same information over and over again, that doesn't help. Telling us more about "variable incentive calculation" might help.
I also now point out the obvious #2. Using an Internet search engine, you will get results in about 10 seconds. Asking here, so far it has been over 2 hours since you asked the question, and no one has any idea how to help you, and no one knows what you mean.
Details matter: WHAT exactly varies?
What is the condition, i.e. value of variable(s) that make the calculation apply differently to different records.
Example of the data that you have.
Dummy code as a sort of template:
data want; set have; if variable=condition1 then incentive = someothervariable* 1.10; /*a 10 % increase of something*/ else if variable=condition2 then incentive=someothervariable* 1.05; /* a 5% increase of something*/ run;
up to you to define the conditions, the base value and how the incentive is applied.
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.