Write and run SAS programs in your web browser

Creating dummy Variables

Reply
New Contributor
Posts: 2

Creating dummy Variables

need to create a new binary variable called Bonus as my "Y" or "Dependent" variable to predict the probability of an employee receiving a performance bonus by end of year. I need to use the Customer_rating variable to create the new variable. It should be Customer_Rating equal to or greater than 3.75 to determine who gets a bonus.

Super User
Posts: 11,134

Re: Creating dummy Variables

data want;

   set have;

   Bonus = (Customer_Rating ge 3.75);

run; 

Ask a Question
Discussion stats
  • 1 reply
  • 102 views
  • 0 likes
  • 2 in conversation