Programming the statistical procedures from SAS

automation of modelling and validation for proc logistic

Accepted Solution Solved
Reply
Contributor
Posts: 20
Accepted Solution

automation of modelling and validation for proc logistic

Dear SAS Gurus,

Currently I have two data sets model_train and model_valitaion.

What I want to do is to develop logistic model by model_train and applied the developed model to model_validation.

 

I have seen some options etc on proc logistic statement but can you give me any simple codes to do the automation of model development by model_train and applied the model to model_validation.

 

i.e. 

proc logistic data=model_train descending;
model y= var1-var5;
run;

 

I want to apply the developped model by the above to model_validation and see how it works.

I know it is possible by using  parameter estimate the procedure output and manually modify it and copy and paste the modelling codes and apply it to model_validation but if you know any more automated efficient way to do this by using some options of the procedure, please let me know.

 

Thank you Gurus,

Kaz

 


Accepted Solutions
Solution
‎04-08-2017 08:01 AM
Grand Advisor
Posts: 9,447

Re: automation of modelling and validation for proc logistic

proc logistic data=model_train descending;
model y= var1-var5;
score data=model_validate out=want;
run;

View solution in original post


All Replies
Solution
‎04-08-2017 08:01 AM
Grand Advisor
Posts: 9,447

Re: automation of modelling and validation for proc logistic

proc logistic data=model_train descending;
model y= var1-var5;
score data=model_validate out=want;
run;
Contributor
Posts: 20

Re: automation of modelling and validation for proc logistic

Dear Ksharp,

 

Thanks very much. It is so efficient and quick solution.

 

Kaz

☑ This topic is SOLVED.

Need further help from the community? Please ask a new question.

Discussion stats
  • 2 replies
  • 89 views
  • 3 likes
  • 2 in conversation