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 Documents\Stat 512\CH14TA01.DAT'; input experience complete; proc print data=programming; run; Obsexperiencecomplete ⁞⁞⁞
Programming Example: Scatterplot proc sort data=programming; by experience; title1 'scatterplot with smoothing'; symbol1 v=square i=sm60 c=blue; proc gplot data=programming; plot complete*experience; run;
Programming Example: Scatterplot (cont)
Programming Experience: Logistic Regression proc genmod data=programming descending; model complete = experience/dist=binomial link=logit type1 aggregate; run;
Programming Experience: Logistic Regression (cont) PROC GENMOD is modeling the probability that complete='1'. Response Profile Ordered Value complete Total Frequency Criteria For Assessing Goodness Of Fit CriterionDFValueValue/DF Deviance Scaled Deviance Pearson Chi-Square Scaled Pearson X Log Likelihood Full Log Likelihood AIC (smaller is better) AICC (smaller is better) BIC (smaller is better) Algorithm converged.
Programming Experience: Logistic Regression (Cont) Analysis Of Maximum Likelihood Parameter Estimates ParameterDFEstimate Standard Error Wald 95% Confidence Limits Wald Chi- Square Pr > ChiSq Intercept experience Scale Note:The scale parameter was held fixed.
Programming Example: Fitted Curve symbol1 v=square i=none c=blue; symbol2 v=none i=join c=blue; proc gplot data=fit; plot complete*experience pred*experience/overlay; run;
Programming Example: Hypothesis test Note:The scale parameter was held fixed. LR Statistics For Type 1 Analysis SourceDevianceDFChi-SquarePr > ChiSq Intercept experience