5.4 Multiple logistic regression

Slides:



Advertisements
Similar presentations
Getting More out of Multiple Regression Darren Campbell, PhD.
Advertisements

Test practice Multiplication. Multiplication 9x2.
The %LRpowerCorr10 SAS Macro Power Estimation for Logistic Regression Models with Several Predictors of Interest in the Presence of Covariates D. Keith.
Multiple Linear Regression
Zoom 30 x 200 Matrix for Red: R(red) G(green) B(blue) Frequency for red:
Interactions: IVs = continuous & continuous IVs = continuous & categorical.
Topic 3: Simple Linear Regression. Outline Simple linear regression model –Model parameters –Distribution of error terms Estimation of regression parameters.
Datamining and statistical learning - lecture 9 Generalized linear models (GAMs)  Some examples of linear models  Proc GAM in SAS  Model selection in.
Some Terms Y =  o +  1 X Regression of Y on X Regress Y on X X called independent variable or predictor variable or covariate or factor Which factors.
Psychology 202b Advanced Psychological Statistics, II January 27, 2011.
Multiple regression analysis
© Copyright 2000, Julia Hartman 1 An Interactive Tutorial for SPSS 10.0 for Windows © by Julia Hartman Binomial Logistic Regression Next.
Multinomial Logistic Regression
Regression Diagnostics Using Residual Plots in SAS to Determine the Appropriateness of the Model.
Plots, Correlations, and Regression Getting a feel for the data using plots, then analyzing the data with correlations and linear regression.
Two-Way ANOVA in SAS Multiple regression with two or
More Linear Regression Outliers, Influential Points, and Confidence Interval Construction.
Example: Price Analysis for Diamond Rings in Singapore Variables Response Variable: Price in Singapore dollars (Y) Explanatory Variable: Weight of diamond.
Logistic Regression II Simple 2x2 Table (courtesy Hosmer and Lemeshow) Exposure=1Exposure=0 Disease = 1 Disease = 0.
Multiply and Divide Decimals
© 2005 The McGraw-Hill Companies, Inc., All Rights Reserved. Chapter 12 Describing Data.
Introduction to SAS/Graph Don Miller 812 Oswald Tower
10.2 Sequences Math 6B Calculus II. Limit of Sequences from Limits of Functions.
Topic 2: An Example. Leaning Tower of Pisa Construction began in 1173 and by 1178 (2 nd floor), it began to sink Construction resumed in To compensate.
1 Experimental Statistics - week 10 Chapter 11: Linear Regression and Correlation.
Lecture 4 SIMPLE LINEAR REGRESSION.
1 Experimental Statistics - week 10 Chapter 11: Linear Regression and Correlation Note: Homework Due Thursday.
Tailored Products Group Analysis Silver Chung Marshall Shen.
April 6 Logistic Regression –Estimating probability based on logistic model –Testing differences among multiple groups –Assumptions for model.
01/20151 EPI 5344: Survival Analysis in Epidemiology SAS code and output February 24, 2015 Dr. N. Birkett, School of Epidemiology, Public Health & Preventive.
Then click the box for Normal probability plot. In the box labeled Standardized Residual Plots, first click the checkbox for Histogram, Multiple Linear.
Grant Brown.  AIDS patients – compliance with treatment  Binary response – complied or no  Attempt to find factors associated with better compliance.
Nonlinear Models. Learning Example: knnl533.sas Y = relative efficiency of production of a new product (1/expected cost) X 1 : Location A : X 1 = 1, B:
Topic 17: Interaction Models. Interaction Models With several explanatory variables, we need to consider the possibility that the effect of one variable.
April 4 Logistic Regression –Lee Chapter 9 –Cody and Smith 9:F.
Regression in SAS Caitlin Phelps. Importing Data  Proc Import:  Read in variables in data set  May need some options incase SAS doesn’t guess the format.
Chapter 4: Introduction to Predictive Modeling: Regressions
Topic 26: Analysis of Covariance. Outline One-way analysis of covariance –Data –Model –Inference –Diagnostics and rememdies Multifactor analysis of covariance.
Introduction to Correlation & Regression with SAS Sam Gordji Weir 107.
Effective SAS greplay’ing and how to avoid stretching By David Mottershead Senior Programmer, Quanticate.
Simple Linear Regression. Data available : (X,Y) Goal : To predict the response Y. (i.e. to obtain the fitted response function f(X)) Least Squares Fitting.
PROC GPLOT GPLOT is used to make two dimensional scatter-plots. General Syntax: proc gplot data=data-set options; plot y-variable*x-variable/options; run;
1 STA 517 – Chp4 Introduction to Generalized Linear Models 4.3 GENERALIZED LINEAR MODELS FOR COUNTS  count data - assume a Poisson distribution  counts.
Copyright © 2012 Pearson Education, Inc. All rights reserved. Chapter 4 Multiple Regression Models.
Sigmoidal Response (knnl558.sas). Programming Example: knnl565.sas Y = completion of a programming task (1 = yes, 0 = no) X 2 = amount of programming.
Applied Epidemiologic Analysis - P8400 Fall 2002 Labs 6 & 7 Case-Control Analysis ----Logistic Regression Henian Chen, M.D., Ph.D.
01/20151 EPI 5344: Survival Analysis in Epidemiology Estimating S(t) from Cox models March 24, 2015 Dr. N. Birkett, School of Epidemiology, Public Health.
1 Say good things, think good thoughts, and do good deeds.
“GLMrous designs” “GLMrous designs” “Are you regressed or something?” “Pseudonyms & aliases” “Pseudonyms & aliases” Models I Models II.
SAS ® is a very powerful tool when producing Graphics. A single graphical data step can easily create a Kaplan Meier Plot, but there is no single graphical.
Experimental Statistics - week 9
Writing Multiple Outputs to One Page a case of blatant plagiarism Martha Cox Cancer Outcomes Research Program.
Testing Significance of coefficients Usually, first examination of model Does the model including the independent variable provide significantly more information.
1 Experimental Statistics - week 12 Chapter 11: Linear Regression and Correlation Chapter 12: Multiple Regression.
03/20161 EPI 5344: Survival Analysis in Epidemiology Estimating S(t) from Cox models March 29, 2016 Dr. N. Birkett, School of Epidemiology, Public Health.
Predicting Energy Consumption in Buildings using Multiple Linear Regression Introduction Linear regression is used to model energy consumption in buildings.
مبررات إدخال الحاسوب في رياض الأطفال
Education Production Function
Presenter: Ting-Ting Chung July 11, 2017
Multiple Linear Regression
Plotting a continuous interaction
مديريت موثر جلسات Running a Meeting that Works
21twelveinteractive.com/ twitter.com/21twelveI/ facebook.com/21twelveinteractive/ linkedin.com/company/21twelve-interactive/ pinterest.com/21twelveinteractive/
Factorial Design.
2/28/2019 Exercise 1 In the bcmort data set, the four-level factor cohort can be considered the product of two two-level factors, say “period” (
Fixed Effects estimate using person level data
Lesson 2.2 Linear Regression.
Cases. Simple Regression Linear Multiple Regression.
5.2 Inference for logistic regression
Median: middle score - half of the data will fall below the median When data is placed in order… - half of the data will fall below the median.
Presentation transcript:

5.4 Multiple logistic regression

proc logistic data=table4_3 desc; class C/param=glm; model NSa=C W; ods output ParameterEstimates=PE; run; data pe2; set pe; var=compress(Variable||ClassVal0); call symput(var, estimate); data pred; do width=18 to 34 by 0.1; lp=&INTERCEPT+(&C1)+width*&W;C=1; p=exp(lp)/(1+exp(lp));output; lp=&INTERCEPT+(&C2)+width*&W;C=2; p=exp(lp)/(1+exp(lp));output; lp=&INTERCEPT+(&C3)+width*&W;C=3; p=exp(lp)/(1+exp(lp));output; lp=&INTERCEPT+width*&W;; C=4; p=exp(lp)/(1+exp(lp));output; end; proc gplot; plot p*width=C; run;

proc logistic data=table4_3 desc; class C/param=glm; model NSa=C W; run; /*test beta for color=0 by comparing the complex model above with simple model below*/ model NSa= W; /*test interaction by comparing the complex model with the model with no interaction*/ model NSa=C W C*W;

/. Monotone scoring for color 1,2,3,4 /*Monotone scoring for color 1,2,3,4*/ proc logistic data=table4_3 desc; model NSa=C W; run; /*C1={1,1,1,0} coding for color*/ class C1/param=glm; model NSa=C1 W;