Hi SAS experts,
I have a data set with N= 2196 observations, a scoring variable (PIPE_Score values from 1 to 13) and an outcome variable (Outcome, values 0 for No and 1 for Yes). I need help with calculating the sensitivity and specificity for predicting the outcome based on the PIPE_Score values and some kind of internal validation (cross-validation or bootstrapping) to check sensitivity and specificity for predicting the outcome based on the PIPE_Score values using the validation cohort. How can I achieve this? Any help with this is much appreciated.
Thank you so much in advance!
SM
If you generated that data set with one of the modeling procedures you should include the code from the modeling procedure.
Then someone more familiar with the procedures can suggest specific options, especially if they may be needed in the model procedure code, to help.
Thank you for the response. I have an excel sheet with the original data. Please see the attached. I do not have any sas code for the question posted because I am not sure how to get it done.
PROC IMPORT OUT= WORK.Derv
DATAFILE= "\\Desktp\Derv.xlsx"
DBMS=EXCEL REPLACE;
RANGE="Sheet1$";
GETNAMES=YES;
MIXED=NO;
SCANTEXT=YES;
USEDATE=YES;
SCANTIME=YES;
RUN;
When i look at that XLSX I see pictures, nothing that could be "imported".
Is that a "validation" set? Usually validation comes with a training set. Do you have such?
So you are actually asking for help creating the predication and then validating? What kind of rules do you have for the prediction?
The excel sheet had ID variable, Outcome variable and scoring variable PIPE_Score. I want to get sensitivity and specificity calculation for Outcome prediction for PIPE_Score cutoffs of 7, 12 and 15. I also want to generate a bootstrapped cohort and calculate the sensitivity and specificity for Outcome prediction for the same PIPE_Score cutoffs of 7, 12 and 15. I have attached the excel sheet again. Thank you for your help!
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.