I am beginner in SAS. I want to know in SAS how I can predict the testing data using logistic regression ( SAS/STAT code)?. I have the optimal model / training model. Now using this I want to forecast the test data. As well I need the ROC curve for both the training and testing in the same graph. Thanks for your help.
... View more
Thanks for your comments. Here I create a very simple example for the above. Inputs are Data 1: Year 2012 2013 2014 Data2: State year value A. 2012. 4 A. 2013. 6 B. 2013. 10 Output: State. Year. Value A. 2012. 4 A. 2013. 6 A. 2014. 0 B. 2012. 0 B. 2013. 10 B. 2014. 0 We might have a number of states which might not be possible to execute one by one manually.
... View more
Thanks for your comments. Here I create a very simple example for the above. Inputs are Data 1: Year 2012 2013 2014 Data2: State year value A. 2012. 4 A. 2013. 6 B. 2013. 10 Output: State. Year. Value A. 2012. 4 A. 2013. 6 A. 2014. 0 B. 2012. 0 B. 2013. 10 B. 2014. 0 We might have a number of states which might not be possible to execute one by one manually.
... View more
Hi guys, Looking for solution. I want to replicate a code from R to SAS. Data: C1 C2 A. 10 B. 20 A. 40 C. 5 B. 55 R code: Result= data.frame() Unq= unique (data$C1) for( i in Unq) { i_df=subset ( data, C1==i) (Some operation) Result=rbind (Result, i_df) } How to do this by SAS. By using loop, not SQL . Thanks.
... View more