sas - Applying cutoff to data set with IDs -


i using sas , managed run proc logistic, gives me table so.

classification table prob    correct incorrect   percentages level   event   non-    event   non-    correct sensi-  speci-  false   false                 event           event           tivity  ficity  pos     neg  j 0       33      0       328     0       9.1     100     0       90.9    .    99 0.02    33      62      266     0       26.3    100     18.9    89      0   117.9 0.04    31      162     166     2       53.5    93.9    49.4    84.3    1.2 142.3 0.06    26      209     119     7       65.1    78.8    63.7    82.1    3.2 141.5 

how include ids rows of data in lib.post_201505_pred below have @ least 0.6 probability?

proc logistic data=lib.post_201503 outmodel=lib.post_201503_model descending; model buyer =      age     tenure     usage     payment     loyalty_card     /outroc=lib.post_201503_roc;     score data=lib.post_201505 out=lib.post_201505_pred outroc=lib.post_201505_roc; run; 

i've been reading documentation , searching online haven't found on it. must searching wrong keywords, presume used process.

you need id-statement tell sas id-variable identifies observations;

proc logistic data=lib.post_201503 outmodel=lib.post_201503_model descending;     id id;      model buyer = age tenure usage payment loyalty_card         /outroc=lib.post_201503_roc;     score data=lib.post_201505          out=lib.post_201505_pred          outroc=lib.post_201505_roc; run; 

now output contains need. instance print ids had probability of @ least 0.6 assigned of being buyer them;

proc print data=lib.post_201505_pred (where=(p_1 ge 0.6));     var id p_1; run; 

you find these id yourkey; statements throughout statistical procedures in sas, instance ;

proc univariate data=psydata.stroop;     id subject;     var readtime; run; 

** report extreme values of readtime

enter image description here

;


Comments

Popular posts from this blog

c - Bitwise operation with (signed) enum value -

xslt - Unnest parent nodes by child node -

YouTubePlayerFragment cannot be cast to android.support.v4.app.Fragment -