# Posts Tagged ‘ logistic regression ’

## Example 2014.7: Simulate logistic regression with an interaction

June 24, 2014
By

Reader Annisa Mike asked in a comment on an early post about power calculation for logistic regression with an interaction.

This is a topic that has come up with increasing frequency in grant proposals and article submissions. We'll begin by showing how to simulate data with the interaction,...

Tags: , ,
Posted in SAS | Comments Off on Example 2014.7: Simulate logistic regression with an interaction

## The 7-year question

April 6, 2012
By

I have been at SAS for 7 years and up until 10 days ago, I had never been asked this question. Since then, I've been asked four times, so now must be the time to answer it! Question: Can we simply use a linear regression model to predict the response ...

Tags: , , ,
Posted in SAS | Comments Off on The 7-year question

## Example 9.14: confidence intervals for logistic regression models

November 15, 2011
By

Recently a student asked about the difference between confint() and confint.default() functions, both available in the MASS library to calculate confidence intervals from logistic regression models. The following example demonstrates that they yield d...

Tags: , , , , , , , ,
Posted in SAS | Comments Off on Example 9.14: confidence intervals for logistic regression models

## Example 9.14: confidence intervals for logistic regression models

November 15, 2011
By

Recently a student asked about the difference between confint() and confint.default() functions, both available in the MASS library to calculate confidence intervals from logistic regression models. The following example demonstrates that they yield d...

Tags: , , , , , , , ,
Posted in SAS | Comments Off on Example 9.14: confidence intervals for logistic regression models

## Example 9.14: confidence intervals for logistic regression models

November 15, 2011
By

Recently a student asked about the difference between confint() and confint.default() functions, both available in the MASS library to calculate confidence intervals from logistic regression models. The following example demonstrates that they yield d...

Tags: , , , , , , , ,
Posted in SAS | Comments Off on Example 9.14: confidence intervals for logistic regression models

## Example 8.15: Firth logistic regression

November 22, 2010
By

In logistic regression, when the outcome has low (or high) prevalence, or when there are several interacted categorical predictors, it can happen that for some combination of the predictors, all the observations have the same event status. A similar e...

Tags: , , , , ,
Posted in SAS | Comments Off on Example 8.15: Firth logistic regression

## Example 8.8: more Hosmer and Lemeshow

October 5, 2010
By

This is a special R-only entry.In Example 8.7, we showed the Hosmer and Lemeshow goodness-of-fit test. Today we demonstrate more advanced computational approaches for the test.If you write a function for your own use, it hardly matters what it looks l...

Tags: , , ,
Posted in SAS | Comments Off on Example 8.8: more Hosmer and Lemeshow

## Example 8.7: Hosmer and Lemeshow goodness-of-fit

September 28, 2010
By

The Hosmer and Lemeshow goodness of fit (GOF) test is a way to assess whether there is evidence for lack of fit in a logistic regression model. Simply put, the test compares the expected and observed number of events in bins defined by the predicted p...

Tags: , , , , , ,
Posted in SAS | Comments Off on Example 8.7: Hosmer and Lemeshow goodness-of-fit

## Welcome!

SAS-X.com offers news and tutorials about the various SAS® software packages, contributed by bloggers. You are welcome to subscribe to e-mail updates, or add your SAS-blog to the site.