As of May 31, 2023, we have updated our Code of Conduct.

Questions tagged [separation]

Separation occurs when some classes of a categorical outcome can be perfectly distinguished by a linear combination of other variables.

Filter by
Sorted by
Tagged with
4 votes
3 answers
893 views

How to deal with the "sure probability" (p=1) in logistic regression

The logistic regression model is: $$\log\bigg(\frac{p}{1-p}\bigg) = \ldots$$ The most interesting case (for me) is the case that we have $p=1$ and $p=0$. But in this case, the ratio $p/(1-p)$ doesn'...
Metariat's user avatar
  • 2,436
1 vote
0 answers
2k views

Probit model: marginal effects cannot be estimated because one dummy variable was dropped for predicting failure perfectly

I have a basic question about the -margins- command in Stata: I was wondering if there was a workaround to run marginal effects for a model where one of the dummy ...
Marquis de Carabas's user avatar
1 vote
1 answer
5k views

Large value of exp (B) in binary logistic regression SPSS what is wrong? [duplicate]

I had a very large value for Exp(B) in SPSS binary logistic regression. What is wrong and what should I do?
Elena Vassiljeva's user avatar
0 votes
0 answers
34 views

Logit model - none of the cases vary on one predictor

What do you do with a categorical predictor (e.g. Black-White-Hispanic) in a logistic model when none of the cases are White, but about half the population studied is? You have to drop this predictor ...
Margaret's user avatar
25 votes
2 answers
915 views

What is the probability that $n$ random points in $d$ dimensions are linearly separable?

Given $n$ data points, each with $d$ features, $n/2$ are labeled as $0$, the other $n/2$ are labeled as $1$. Each feature takes a value from $[0,1]$ randomly (uniform distribution). What's the ...
Xing Shi's user avatar
  • 401
0 votes
0 answers
2k views

Trained Logistic Regression returns 'NAN' for some out of sample data

I'm using MATLAB R2015a, glmfit function for training and glmval for out of sample ...
user2991243's user avatar
  • 3,911
2 votes
1 answer
928 views

perfect variable separation, determine cutoff via ROCR package in R

I am developing a logistic regression model where perfect variable separation occurs. I want to calculate a cutoff from this data. Interestingly, the length of the slot ...
tnaake's user avatar
  • 221
0 votes
0 answers
1k views

Using results of Canonical Discriminant Analysis to get overall variable importance?

I have a dataset with thousands of observations pre-assigned to 18 groups and with measures for 8 different variables. I am using canonical discriminant analysis to see how separable my 18 groups are. ...
sth's user avatar
  • 265
1 vote
0 answers
380 views

How to deal with separation in logistic regression? [duplicate]

I'm running a binary logistic regression on 15 independent variables for 180 observations in Stata (version 11). This I do for four different groups, i.e. four dependent variables. For three, it works ...
Annette's user avatar
  • 21
11 votes
1 answer
5k views

Binomial glmm with a categorical variable with full successes

I am running a glmm with a binomial response variable and a categorical predictor. The random effect is given by the nested design used for the data collection. The data looks like this: ...
user avatar
3 votes
0 answers
718 views

Mixed logistic model with complete separation [duplicate]

I want am trying to produce a mixed logistic model but certain explanatory variables suffer from complete separation. I am aware that I need to either use exact logistic regression or a firth ...
Jonathan Bone's user avatar
4 votes
2 answers
634 views

2D projection to maximise separability

I have a set of 500 points in 5D. Each point belongs to one of five classes, and the class labels are known. I’d like to visualise the dataset in 2D such that the classes would be separated as much ...
NPE's user avatar
  • 5,461
6 votes
1 answer
2k views

High p-values for logistic regression variable that perfectly separates?

I'm using R to run some logistic regression. My variables were continuous, but I used cut to bucket the data. Some particular buckets for these variables always result in dependent variable being ...
ch-pub's user avatar
  • 771
20 votes
1 answer
7k views

Seeking a Theoretical Understanding of Firth Logistic Regression

I am trying to understand Firth logistic regression (method of handling perfect/complete or quasi-complete separation in logistic regression) so I can explain it to others in simplified terms. Does ...
ESmyth5988's user avatar
22 votes
1 answer
2k views

Model selection with Firth logistic regression

In a small data set ($n\sim100$ ) that I am working with, several variables give me perfect prediction/separation. I thus use Firth logistic regression to deal with the issue. If I select the best ...
StasK's user avatar
  • 30.1k
8 votes
1 answer
4k views

How to describe and present the issue of perfect separation?

Folks who work with logistic regression are familiar with the issue of perfect separation: if you have a variable specific values of which are associated with only one of the two outcomes (say a ...
StasK's user avatar
  • 30.1k
0 votes
0 answers
442 views

Why the analysis of deviance of glm gives df=0 for one covariate?

I am applying a logistic regression on the effect of dose, age, PS, menopausal and pairID on the response variable. The data come from a case-control study where controls were matched/paired based on ...
tiantianchen's user avatar
  • 2,011
6 votes
1 answer
2k views

Perfect separation error message for glm with binomial but not with quasibinomial family

I am attempting to create a model which looks at the effect that age, supplementary food use, and nest initiation date (converted to Julian days) is having on female reproductive success (success =1 ...
Lydia Doerr's user avatar
2 votes
1 answer
2k views

A categorical variable in glm shows significance from analysis of deviance, but each level is not significant in z-test

I am fitting a generalized linear model (glm). The explanatory variable is categorical with three levels (control, treat1, treat2). The response variable is 0 or 1. The response rate for each ...
tiantianchen's user avatar
  • 2,011
3 votes
2 answers
1k views

What causes perfect prediction but no significant predictors in logistic regression?

I want to do a logistic regression with R. I have 18 continuous covariates and a sample consisting of 100 observations. When I enter all of the covariates into the ...
Mahmoud's user avatar
  • 383
5 votes
0 answers
370 views

Separation in logistic regression in a complex survey?

Firth's penalized maximum likelihood estimates, exact logistic regression and Bayesian logistic regression (e.g. bayesglm) can account for separation in logistic regression. But how to account for ...
KuJ's user avatar
  • 1,566
9 votes
1 answer
2k views

Enormous coefficients in logistic regression - what does it mean and what to do?

I get enormous coefficients during logistic regression, see coefficients with krajULKV: ...
Tomas's user avatar
  • 6,003
1 vote
2 answers
1k views

CI for logistic regression

What does it means if no CI was given for binary logistic regression analysis in SPSS output?
StatLearner's user avatar
63 votes
1 answer
20k views

Logistic regression in R resulted in perfect separation (Hauck-Donner phenomenon). Now what? [duplicate]

I'm trying to predict a binary outcome using 50 continuous explanatory variables (the range of most of the variables is $-\infty$ to $\infty$). My data set has almost 24,000 rows. When I run ...
Dcook's user avatar
  • 763
10 votes
2 answers
6k views

How to deal with quasi-complete separation in a logistic GLMM?

Update: Since I now know that my problem is called quasi-complete separation I updated the question to reflect this (thanks to Aaron). I have a dataset from an experiment in which 29 human ...
Henrik's user avatar
  • 13.9k
1 vote
0 answers
130 views

Suggest an exhaustive procedure that will find a separating vector for linearly separable pattern in a finite number of steps

I read in a pattern classification text, that if we consider weight vectors whose components are integer valued, the perceptron procedure would terminate in a finite number of steps. What is the ...
stressed_geek's user avatar
1 vote
0 answers
821 views

How does one prove that a separating hyper-plane exists for a linearly separable pattern?

How does one prove that a separating hyper-plane that can be represented as a linear combination of the training samples exists for a linearly separable pattern? Although, it looks pretty obvious ...
stressed_geek's user avatar
205 votes
10 answers
222k views

How to deal with perfect separation in logistic regression?

If you have a variable which perfectly separates zeroes and ones in target variable, R will yield the following "perfect or quasi perfect separation" warning message: ...
user333's user avatar
  • 7,011
8 votes
1 answer
9k views

Unexpected singularities in the Hessian matrix error in multinomial logistic regression

I have been doing multinomial logistic regression analysis using SPSS 19. I have encountered the following problem when I run the analysis procedure: "Unexpected singularities in the Hessian ...
Kate's user avatar
  • 81
49 votes
2 answers
151k views

Logistic regression model does not converge

I've got some data about airline flights (in a data frame called flights) and I would like to see if the flight time has any effect on the probability of a ...
Daniel Standage's user avatar

1 2 3
4