// //maximum number of records resavation variable // //this variable is used to maximum number of records. //Example1 draw effient curve by LAST variable. //Read DM ancate data which has react flag 'good' or 'no'. get dmdat500R.csv@; //Digitizing recall flag for logit regression. if(def == "good") { flag=1; } else { flag=0; } //Execute logit regression. logit flag by income dm1-5 area amount old homespan workspan; //Get flag and pd from logit output and sort descending pd. get freq@ana; select flag pd; sort -pd;
//accume flag for catching number acording to descent pd. accume flags; flags=flag;
//Calcurete record composite rate and catching rate. countRate = #/LAST; catchRate = flags/60;
//Plot efficent curve. plot line catchRate by countRate;