110 likes | 207 Views
Sigmoidal Response (knnl558.sas). Programming Example: knnl565.sas. Y = completion of a programming task (1 = yes, 0 = no) X 2 = amount of programming experience (months) n = 25. Programming Example: input. data programming; infile ‘H: My DocumentsStat 512CH14TA01.DAT' ;
E N D
Programming Example: knnl565.sas Y = completion of a programming task (1 = yes, 0 = no) X2 = amount of programming experience (months) n = 25
Programming Example: input data programming; infile‘H:\My Documents\Stat 512\CH14TA01.DAT'; input experience complete; procprintdata=programming; run;
Programming Example: Scatterplot procsortdata=programming; by experience; title1'scatterplot with smoothing'; symbol1v=square i=sm60 c=blue; procgplotdata=programming; plot complete*experience; run;
Programming Experience: Logistic Regression procgenmoddata=programming descending; model complete = experience/dist=binomial link=logittype1 aggregate; run;
Programming Experience: Logistic Regression (cont) PROC GENMOD is modeling the probability that complete='1'.
Programming Example: Fitted Curve symbol1v=square i=nonec=blue; symbol2v=nonei=join c=blue; procgplotdata=fit; plot complete*experience pred*experience/overlay; run;