Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Examine the SAS code from mod4knn.sas Download mod4knn.sasfile and for each SAS statement, provide the explanation of the code as SAS comments. Put this part
Examine the SAS code from mod4knn.sas Download mod4knn.sasfile and for each SAS statement, provide the explanation of the code as SAS comments. Put this part in the Appendix of your report.
/ Students need to modify this code accordingly*/ /*Randomly choose 50% of data to fit the model*/ proc surveyselect data=work. IMPORT3 out=wine WOORK.IMPORT3.DATA does not exist. run; NOTE: The SAS System stopped processing this step because of errors. WARNING: The data set WORK.WINE may be incomplete. When this step was stopped there were observations and variables. NOTE: PROCEDURE SURVEYSELECT used (Total process time) : real time 0.00 seconds usercputimesystemcputime0.01seconds0.00seconds systemcputimememory0.00seco:337.78k OS Memory 23972.00k TimestampStepCount01/15/202331Switch03:19:41PM Page Faults Page Reclai Page Swaps Page Swaps Involuntary Context Switches Block Input Operations Block Output Operations / Number of k neighbors*/ \%let k=1; / *Perform knn algorithm*/ proc discrim data=wine (where= (selected=1)) test=wine (where =( selected =0) is not on file WORK.WINE. testout=winetestout is not on file WORK. WINE. listerr crosslisterr; class quality; var fixed_acidity volatile_acidity citric_acid residual_sugar chlorides free_sulfur_dioxide total_sulfur_dioxide ! density pH sulphates alcohol; run; title 'Using KNN on Wine Data'; NOTE: The SAS System stopped processing this step because of errors. NOTE: PROCEDURE DISCRIM used (Total process time): real time 0.00 seconds user cpu time 0.00 seconds system cpu time 0.00 seconds os Memory \begin{tabular}{ll} Timestamp & 23972.00k \\ \hline Step & 01/15/202303:19:41PM \end{tabular} Step Count Page Faults Page Reclaims Page Swaps Voluntary Context Switches Involuntary Context Switches Block Input Operations Block Output OperationsStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access with AI-Powered Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started