a month ago
skumar46
Calcite | Level 5
Member since
06-22-2024
- 6 Posts
- 0 Likes Given
- 0 Solutions
- 0 Likes Received
-
Latest posts by skumar46
Subject Views Posted 525 a month ago 568 a month ago 601 03-28-2025 01:47 AM 720 03-26-2025 10:38 PM 757 03-26-2025 08:25 PM 454 06-22-2024 12:18 AM -
Activity Feed for skumar46
- Posted Re: PROC FOREST- Unable to run code on Statistical Procedures. a month ago
- Posted Re: PROC FOREST- Unable to run code on Statistical Procedures. a month ago
- Posted Re: PROC FOREST- Unable to run code on Statistical Procedures. 03-28-2025 01:47 AM
- Posted Re: PROC FOREST- Unable to run code on Statistical Procedures. 03-26-2025 10:38 PM
- Posted PROC FOREST- Unable to run code on Statistical Procedures. 03-26-2025 08:25 PM
- Posted Wants hands on experience/practice of Various projects on New SAS User. 06-22-2024 12:18 AM
a month ago
Hi, I am still facing error with following codes. I believe that its waisting our both of times getting along with each other. I would appreciate if you run this at your end before responding and do share with my sas coding script, it will be easy for me PROC FOREST DATA=casuser.credit_modeling_sampling NTREES=100 SEED=12345; TARGET Default_Flag / LEVEL=NOMINAL; INPUT Income Loan_Amount Interest_Rate Debt_to_Income_Ratio Delinquency_History / LEVEL=INTERVAL; OUTPUT OUT=CASUSER.rf_preds; RUN; PROC HPFOREST DATA=casuser.credit_modeling_sampling MAXTREES=100 SEED=12345; TARGET Default_Flag / LEVEL=BINARY; /* Specify the binary target */ INPUT Income Loan_Amount Interest_Rate Debt_to_Income_Ratio Delinquency_History / LEVEL=INTERVAL; /* Specify input variables */ /* Optional: for scoring output */ SCORE OUT=CASUSER.rf_preds; RUN; I am new user
... View more
a month ago
I tried both below codes given by you but still its not going through. I would appreciate if you download my given dataset and sas coding script and see if you are able to run code. Code (1) RUN; Error: 1 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK; 68 69 PROC FOREST DATA=casuser.credit_modeling_sampling NTREES=100 SEED=12345; ERROR: Libref CASUSER is not assigned. 70 TARGET Default_Flag / LEVEL=NOMINAL; ERROR: No data set open to look up variables. 71 INPUT Income Loan_Amount ERROR: No data set open to look up variables. 72 Interest_Rate Debt_to_Income_Ratio Delinquency_History ERROR: No data set open to look up variables. ERROR: No data set open to look up variables. ERROR: No data set open to look up variables. 73 / LEVEL=INTERVAL; ERROR: No data set open to look up variables. 74 OUTPUT OUT=CASUSER.rf_preds; ERROR: Libref CASUSER is not assigned. 75 RUN; NOTE: The SAS System stopped processing this step because of errors. NOTE: PROCEDURE FOREST used (Total process time): real time 0.00 seconds user cpu time 0.00 seconds system cpu time 0.00 seconds memory 193.18k OS Memory 24224.00k Timestamp 03/28/2025 07:03:51 PM Step Count 152 Switch Count 0 Page Faults 0 Page Reclaims 15 Page Swaps 0 Voluntary Context Switches 0 Involuntary Context Switches 0 Block Input Operations 0 Block Output Operations 8 76 77 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK; 87 Code (2) PROC HPFOREST DATA=casuser.credit_modeling_sampling MAXTREES=100 SEED=12345; TARGET Default_Flag / LEVEL=BINARY; /* Specify the binary target */ INPUT Income Loan_Amount Interest_Rate Debt_to_Income_Ratio Delinquency_History / LEVEL=INTERVAL; /* Specify input variables */ /* Optional: for scoring output */ SCORE OUT=rf_preds; RUN; Error: 1 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK; 68 69 PROC HPFOREST DATA=casuser.credit_modeling_sampling MAXTREES=100 SEED=12345; ERROR: Libref CASUSER is not assigned. 70 TARGET Default_Flag / LEVEL=BINARY; /* Specify the binary target */ ERROR: No data set open to look up variables. 71 INPUT Income Loan_Amount ERROR: No data set open to look up variables. 72 Interest_Rate Debt_to_Income_Ratio Delinquency_History ERROR: No data set open to look up variables. ERROR: No data set open to look up variables. ERROR: No data set open to look up variables. 73 / LEVEL=INTERVAL; /* Specify input variables */ ERROR: No data set open to look up variables. 74 75 /* Optional: for scoring output */ 76 SCORE OUT=rf_preds; 77 RUN; NOTE: The SAS System stopped processing this step because of errors. WARNING: The data set WORK.RF_PREDS may be incomplete. When this step was stopped there were 0 observations and 0 variables. WARNING: Data set WORK.RF_PREDS was not replaced because this step was stopped. NOTE: PROCEDURE HPFOREST used (Total process time): real time 0.00 seconds user cpu time 0.00 seconds system cpu time 0.00 seconds memory 348.40k OS Memory 24224.00k Timestamp 03/28/2025 07:04:09 PM Step Count 158 Switch Count 0 Page Faults 0 Page Reclaims 14 Page Swaps 0 Voluntary Context Switches 0 Involuntary Context Switches 0 Block Input Operations 0 Block Output Operations 8 78 79 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK; 89
... View more
03-28-2025
01:47 AM
Hi, Used both Nominal & Interval but still facing same issue. Pls support
... View more
03-26-2025
10:38 PM
I have used procforest/hp procforest in 3 different ways and log of all three as under-you can check the attached sas script 1) 1 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK; 68 69 PROC FOREST DATA=credit_data_transformed; 70 TARGET Default_Flag / LEVEL=BINARY; ______ 22 76 ERROR 22-322: Syntax error, expecting one of the following: INTERVAL, NOMINAL. ERROR 76-322: Syntax error, statement will be ignored. 71 INPUT Log_Income Log_Loan_Amount Interest_Loan_Term 72 Interest_Rate Debt_to_Income_Ratio Delinquency_History 73 Credit_Score_High Credit_Score_Medium Age_Young Age_Middle / LEVEL=INTERVAL; 74 NTREES=100; /* Number of trees */ ______ 180 75 SEED=12345; ____ 180 76 OOBPREDICT; __________ 180 77 OUTPUT OUT=rf_preds PREDICTED=RF_Pred_Prob; _________ 22 76 ERROR 180-322: Statement is not valid or it is used out of proper order. ERROR 22-322: Syntax error, expecting one of the following: ;, (, COPYVAR, COPYVARS, MODELID, ROLE. ERROR 76-322: Syntax error, statement will be ignored. 78 RUN; NOTE: The SAS System stopped processing this step because of errors. NOTE: PROCEDURE FOREST used (Total process time): real time 0.00 seconds user cpu time 0.00 seconds system cpu time 0.00 seconds memory 591.90k OS Memory 26020.00k Timestamp 03/27/2025 02:36:33 AM Step Count 158 Switch Count 0 Page Faults 0 Page Reclaims 49 Page Swaps 0 Voluntary Context Switches 0 Involuntary Context Switches 0 Block Input Operations 0 Block Output Operations 0 79 80 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK; 2) 1 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK; 68 69 PROC HPFOREST DATA=credit_data_transformed OUTMODEL=rf_model; ________ 22 202 ERROR 22-322: Syntax error, expecting one of the following: ;, (, ALPHA, BALANCE, CATBINS, CRITERION, DATA, EXHAUSTIVE, GRIDCLASSSIZE, GRIDCOPY, GRIDNODESIZE, IMPORTANCE, INBAGFRACTION, INBAGN, INTERVALBINS, LEAFFRACTION, LEAFSIZE, MAXDEPTH, MAXTREES, MINCATSIZE, MINUSEINSEARCH, MISSING, NODESIZE, PRESELECT, PROLE, PRUNEFRACTION, PRUNETHRESHOLD, SCOREPROLE, SECONDMISSING, SEED, SKIP_SEQ_ROWS, SPLITSIZE, VARS_TO_TRY. ERROR 202-322: The option or parameter is not recognized and will be ignored. 70 TARGET Default_Flag / LEVEL=BINARY; /* Specify the binary target */ WARNING: Ignoring second data set reference. 71 INPUT Log_Income Log_Loan_Amount Interest_Loan_Term 72 Interest_Rate Debt_to_Income_Ratio Delinquency_History 73 Credit_Score_High Credit_Score_Medium Age_Young Age_Middle / LEVEL=INTERVAL; /* Specify input variables */ 74 75 /* Specify number of trees and random seed */ 76 NTREES=100; ______ 180 77 SEED=12345; ____ 180 ERROR 180-322: Statement is not valid or it is used out of proper order. 78 79 /* Optional: for scoring output */ 80 SCORE OUT=rf_preds; 81 RUN; NOTE: The SAS System stopped processing this step because of errors. WARNING: The data set WORK.RF_PREDS may be incomplete. When this step was stopped there were 0 observations and 0 variables. WARNING: Data set WORK.RF_PREDS was not replaced because this step was stopped. NOTE: PROCEDURE HPFOREST used (Total process time): real time 0.00 seconds user cpu time 0.00 seconds system cpu time 0.00 seconds memory 659.37k OS Memory 26020.00k Timestamp 03/27/2025 02:36:56 AM Step Count 164 Switch Count 0 Page Faults 0 Page Reclaims 48 Page Swaps 0 Voluntary Context Switches 0 Involuntary Context Switches 0 Block Input Operations 0 Block Output Operations 16 3) 1 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK; 68 69 PROC HPFOREST DATA=credit_data_transformed OUTMODEL=rf_model; ________ 22 202 ERROR 22-322: Syntax error, expecting one of the following: ;, (, ALPHA, BALANCE, CATBINS, CRITERION, DATA, EXHAUSTIVE, GRIDCLASSSIZE, GRIDCOPY, GRIDNODESIZE, IMPORTANCE, INBAGFRACTION, INBAGN, INTERVALBINS, LEAFFRACTION, LEAFSIZE, MAXDEPTH, MAXTREES, MINCATSIZE, MINUSEINSEARCH, MISSING, NODESIZE, PRESELECT, PROLE, PRUNEFRACTION, PRUNETHRESHOLD, SCOREPROLE, SECONDMISSING, SEED, SKIP_SEQ_ROWS, SPLITSIZE, VARS_TO_TRY. ERROR 202-322: The option or parameter is not recognized and will be ignored. 70 TARGET Default_Flag / LEVEL=BINARY; /* Specify the binary target */ WARNING: Ignoring second data set reference. 71 INPUT Log_Income Log_Loan_Amount Interest_Loan_Term 72 Interest_Rate Debt_to_Income_Ratio Delinquency_History 73 Credit_Score_High Credit_Score_Medium Age_Young Age_Middle / LEVEL=INTERVAL; /* Specify input variables */ 74 75 /* Number of trees, random seed, and model training */ 76 NTREES=100; /* Specify the number of trees */ ______ 180 77 SEED=12345; /* Set the random seed */ ____ 180 78 TRAINFRAC=0.7; /* Use 70% of the data for training */ _________ 180 ERROR 180-322: Statement is not valid or it is used out of proper order. 79 80 /* Store the predictions */ 81 SCORE OUT=rf_preds; 82 RUN; NOTE: The SAS System stopped processing this step because of errors. WARNING: The data set WORK.RF_PREDS may be incomplete. When this step was stopped there were 0 observations and 0 variables. WARNING: Data set WORK.RF_PREDS was not replaced because this step was stopped. NOTE: PROCEDURE HPFOREST used (Total process time): real time 0.00 seconds user cpu time 0.00 seconds system cpu time 0.00 seconds memory 656.75k OS Memory 26020.00k Timestamp 03/27/2025 02:37:33 AM Step Count 170 Switch Count 0 Page Faults 0 Page Reclaims 48 Page Swaps 0 Voluntary Context Switches 0 Involuntary Context Switches 0 Block Input Operations 0 Block Output Operations 8 83 84 85 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK; 95
... View more
03-26-2025
08:25 PM
Hi, I have attached herewith dataset and coding script in sas on demand. I am having diificult in running the below code, would appreciate if anybody can help me out;- Tried with different ways as following but not working stilll: *Step 4: Random Forest (More Robust Alternative)) */ PROC FOREST DATA=credit_data_transformed; TARGET Default_Flag / LEVEL=BINARY; INPUT Log_Income Log_Loan_Amount Interest_Loan_Term Interest_Rate Debt_to_Income_Ratio Delinquency_History Credit_Score_High Credit_Score_Medium Age_Young Age_Middle / LEVEL=INTERVAL; NTREES=100; /* Number of trees */ SEED=12345; OOBPREDICT; OUTPUT OUT=rf_preds PREDICTED=RF_Pred_Prob; RUN; PROC HPFOREST DATA=credit_data_transformed OUTMODEL=rf_model; TARGET Default_Flag / LEVEL=BINARY; /* Specify the binary target */ INPUT Log_Income Log_Loan_Amount Interest_Loan_Term Interest_Rate Debt_to_Income_Ratio Delinquency_History Credit_Score_High Credit_Score_Medium Age_Young Age_Middle / LEVEL=INTERVAL; /* Specify input variables */ /* Specify number of trees and random seed */ NTREES=100; SEED=12345; /* Optional: for scoring output */ SCORE OUT=rf_preds; RUN; PROC HPFOREST DATA=credit_data_transformed OUTMODEL=rf_model; TARGET Default_Flag / LEVEL=BINARY; /* Specify the binary target */ INPUT Log_Income Log_Loan_Amount Interest_Loan_Term Interest_Rate Debt_to_Income_Ratio Delinquency_History Credit_Score_High Credit_Score_Medium Age_Young Age_Middle / LEVEL=INTERVAL; /* Specify input variables */ /* Number of trees, random seed, and model training */ NTREES=100; /* Specify the number of trees */ SEED=12345; /* Set the random seed */ TRAINFRAC=0.7; /* Use 70% of the data for training */ /* Store the predictions */ SCORE OUT=rf_preds; RUN; PROC SETINIT; RUN;
... View more
06-22-2024
12:18 AM
Hello Every, I have done SAS courses on Undemy. But in order to learn, i wants to have hands on experience of various SAS projects. Unfortunatly, I am unable to find enough solved projects using SAS on youtube. Please see if you can help me out by sharing the link of solved projects using SAS so that i could practice and learn better. I am from finance background, it would be better if links are preferably shared related to Finance/Accounting/Credit Modelling otherwise projects on topic are welcome.
... View more