So i converted numeric variables into categorical variable.
By far when i check my temporary data called 'forreg' i can see 'Male' equals 1 for Gender.
But When i tried to plot PROC REG it still doesn't allow me to plot
and gives me error, saying:
150 data forreg; 151 set new; 152 KEEP Exam Assign Gender; 153 IF Gender='Male' then Gender=1; Else Gender=0; 154 run;
NOTE: Numeric values have been converted to character values at the places given by: (Line):(Column). 153:30 153:45 NOTE: There were 146 observations read from the data set WORK.NEW. NOTE: The data set WORK.FORREG has 146 observations and 3 variables. NOTE: DATA statement used (Total process time): real time 0.03 seconds cpu time 0.03 seconds
155 156 TITLE1 'Scatter'; 157 PROC REG data=forreg; 158 MODEL Exam = Assign Gender /VIF; ERROR: Variable GENDER in list does not match type prescribed for this list. NOTE: The previous statement has been deleted. 159 RUN;
WARNING: No variables specified for an SSCP matrix. Execution terminating. NOTE: PROCEDURE REG used (Total process time): real time 0.08 seconds cpu time 0.03 seconds
How can i plot PROC REG, using my converted dummy variables?
And here is my code
KEEP Exam Assign Gender;
IF Gender='Male' then Gender=1; Else Gender=0;
PROC REG data=forreg;
MODEL Exam = Assign Gender /VIF;
Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.
If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website.