5.2 Inference for logistic regression

Slides:



Advertisements
Similar presentations
Chapter 2 Describing Contingency Tables Reported by Liu Qi.
Advertisements

1 Markov Chains: Transitional Modeling Qi Liu. 2 content Terminology Transitional Models without Explanatory Variables Transitional Models without Explanatory.
Data: Crab mating patterns Data: Typists (Poisson with random effects) (Poisson Regression, ZIP model, Negative Binomial) Data: Challenger (Binomial with.
Logistic Regression I Outline Introduction to maximum likelihood estimation (MLE) Introduction to Generalized Linear Models The simplest logistic regression.
EPI 809/Spring Probability Distribution of Random Error.
Logistic Regression Example: Horseshoe Crab Data
Overview of Logistics Regression and its SAS implementation
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.
Header= Verdana 28 pt., Red 1 STA 517 – Chapter 3: Inference for Contingency Tables 3. Inference for Contingency Tables 3.1 Confidence Intervals for Association.
1 Experimental design and analyses of experimental data Lesson 6 Logistic regression Generalized Linear Models (GENMOD)
Linear statistical models 2009 Models for continuous, binary and binomial responses  Simple linear models regarded as special cases of GLMs  Simple linear.
Linear statistical models 2008 Binary and binomial responses The response probabilities are modelled as functions of the predictors Link functions: the.
GRA 6020 Multivariate Statistics; The Linear Probability model and The Logit Model (Probit) Ulf H. Olsson Professor of Statistics.
BCOR 1020 Business Statistics Lecture 28 – May 1, 2008.
GRA 6020 Multivariate Statistics; The Linear Probability model and The Logit Model (Probit) Ulf H. Olsson Professor of Statistics.
Nemours Biomedical Research Statistics April 23, 2009 Tim Bunnell, Ph.D. & Jobayer Hossain, Ph.D. Nemours Bioinformatics Core Facility.
1 Modeling Ordinal Associations Section 9.4 Roanna Gee.
Logistic Regression Biostatistics 510 March 15, 2007 Vanessa Perez.
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.
OLS versus MLE Example YX Here is the data:
T T Population Variance Confidence Intervals Purpose Allows the analyst to analyze the population confidence interval for the variance.
Statistics 350 Lecture 17. Today Last Day: Introduction to Multiple Linear Regression Model Today: More Chapter 6.
1 Confidence Intervals for Means. 2 When the sample size n< 30 case1-1. the underlying distribution is normal with known variance case1-2. the underlying.
Generalized Linear Models
Logistic Regression with “Grouped” Data Lobster Survival by Size in a Tethering Experiment Source: E.B. Wilkinson, J.H. Grabowski, G.D. Sherwood, P.O.
Logistic regression for binary response variables.
Logistic Regression II Simple 2x2 Table (courtesy Hosmer and Lemeshow) Exposure=1Exposure=0 Disease = 1 Disease = 0.
SAS Lecture 5 – Some regression procedures Aidan McDermott, April 25, 2005.
STT : BIOSTATISTICS ANALYSIS Dr. Cuixian Chen Chapter 8: Fitting Parametric Regression Models STT
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.
Lecture 4 SIMPLE LINEAR REGRESSION.
Topic 14: Inference in Multiple Regression. Outline Review multiple linear regression Inference of regression coefficients –Application to book example.
April 6 Logistic Regression –Estimating probability based on logistic model –Testing differences among multiple groups –Assumptions for model.
Correlation and Prediction Error The amount of prediction error is associated with the strength of the correlation between X and Y.
2 December 2004PubH8420: Parametric Regression Models Slide 1 Applications - SAS Parametric Regression in SAS –PROC LIFEREG –PROC GENMOD –PROC LOGISTIC.
1 היחידה לייעוץ סטטיסטי אוניברסיטת חיפה פרופ’ בנימין רייזר פרופ’ דוד פרג’י גב’ אפרת ישכיל.
When and why to use Logistic Regression?  The response variable has to be binary or ordinal.  Predictors can be continuous, discrete, or combinations.
April 4 Logistic Regression –Lee Chapter 9 –Cody and Smith 9:F.
GEE Approach Presented by Jianghu Dong Instructor: Professor Keumhee Chough (K.C.) Carrière.
Topic 6: Estimation and Prediction of Y h. Outline Estimation and inference of E(Y h ) Prediction of a new observation Construction of a confidence band.
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.
1 STA 617 – Chp9 Loglinear/Logit Models 9.7 Poisson regressions for rates  In Section 4.3 we introduced Poisson regression for modeling counts. When outcomes.
A preliminary exploration into the Binomial Logistic Regression Models in R and their potential application Andrew Trant PPS Arctic - Labrador Highlands.
1 STA 517 – Chp4 Introduction to Generalized Linear Models 4.3 GENERALIZED LINEAR MODELS FOR COUNTS  count data - assume a Poisson distribution  counts.
1 STA 617 – Chp10 Models for matched pairs Summary  Describing categorical random variable – chapter 1  Poisson for count data  Binomial for binary.
Multiple Logistic Regression STAT E-150 Statistical Methods.
Log-linear Models HRP /03/04 Log-Linear Models for Multi-way Contingency Tables 1. GLM for Poisson-distributed data with log-link (see Agresti.
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.
Logistic regression (when you have a binary response variable)
Logistic Regression Saed Sayad 1www.ismartsoft.com.
1 Say good things, think good thoughts, and do good deeds.
Dependent Variable Discrete  2 values – binomial  3 or more discrete values – multinomial  Skewed – e.g. Poisson Continuous  Non-normal.
Fitting normal distribution: ML 1Computer vision: models, learning and inference. ©2011 Simon J.D. Prince.
04/19/2006Econ 6161 Econ 616 – Spring 2006 Qualitative Response Regression Models Presented by Yan Hu.
Testing Significance of coefficients Usually, first examination of model Does the model including the independent variable provide significantly more information.
Ex St 801 Statistical Methods Inference about a Single Population Mean (CI)
Birthweight (gms) BPDNProp Total BPD (Bronchopulmonary Dysplasia) by birth weight Proportion.
Statistics 350 Review. Today Today: Review Simple Linear Regression Simple linear regression model: Y i =  for i=1,2,…,n Distribution of errors.
LOGISTIC REGRESSION. Purpose  Logistical regression is regularly used when there are only two categories of the dependent variable and there is a mixture.
Chapter 7 Inferences Based on a Single Sample
CHAPTER 7 Linear Correlation & Regression Methods
Notes on Logistic Regression
Generalized Linear Models
F - Ratio Table Degrees of Freedom for the Factor
Linear Regression.
4.6 Fitting generalized linear models
Chp 7 Logit Models for Multivariate Responses
5.4 Multiple logistic regression
Presentation transcript:

5.2 Inference for logistic regression By Wald’s (1943) asymptotic results for ML estimators, parameter estimators in logistic regression models have large-sample normal distributions. Inference can use Wald, likelihood-ratio and score methods

5.2.1 Types of inference

Confidence intervals

SAS code /*group data into 8 groups*/ data table4_3a; set table4_3; W_g=round(W-0.75)+0.75; if W<23.25 then W_g=22.5; if W>29.25 then W_g=30.5; run; proc sql; create table table4_3g as select W_g, count(W_g) as n, sum(NSa) as y, mean(W) as width, sum(Sa) as satell from table4_3a group by W_g; quit; data table4_3g; set table4_3g; logcases=log(n); data table4_3; input C S W Wt Sa@@; NSa=(Sa>0); W1=W- 26.2988439; WW=W1*W1; cards; 2 3 28.3 3.05 …

/*with quadratic item (W-mean)^2 */ proc genmod data=table4_3 desc; model NSa=w1 ww/dist=bin link=logit; run;

SAS output/dataset – Table4_3g

proc genmod data=table4_3g; model y/n = width / dist = bin link = logit lrci alpha = .01 type3; proc logistic data=table4_3g; model y/n = width / influence stb; output out = predict p = pi_hat lower = LCL upper = UCL; data predict; set predict; rate=y/n; std=sqrt(rate*(1-rate)/n); Lrate=rate-1.96*std; Urate=rate+1.96*std; run; proc print data = predict;

symbol1 i=join line=1 color=green value=circle; symbol2 i=join line=1 color=green value=none; symbol3 i=join line=1 color=green value=none; symbol4 i=join line=1 color=blue value=circle; symbol5 i=join line=1 color=blue value=none; symbol6 i=join line=1 color=blue value=none; proc gplot data=predict; plot rate*width Lrate*width Urate*width pi_hat*width LCL*width UCL*width /overlay; Run;

/. log linear model with grouped data /*log linear model with grouped data*/ proc genmod data=table4_3g; model satell = width / dist = poi link = log offset = logcases residuals; run;