Questions tagged [logistic]
Refers generally to statistical procedures that utilize the logistic function, most commonly various forms of logistic regression
8,044
questions
0
votes
0
answers
44
views
how to improve logistic regression model in python
I have 1 million raw data points, and I dropped 2 independent variable because the have over 80% missing value.
All my variables are categorical except for "age" which I scaled between -1 ...
2
votes
1
answer
129
views
Interpreting odds ratio greater than 2
Seems to be a lot of answers for interpreting odds ratios < 1 and > 1, but none for odds ratios > 2?
If I have an odds ratio of 2.22, does this mean there is a 122% increase in the odds for a ...
0
votes
0
answers
32
views
Understanding feature significance in logistics regression [duplicate]
I have a classification problem. The response is whether a player will be banned (Yes=1 or No=0). I am considering a feature whether a player cheats. Intuitively, if a player cheats, they should be ...
1
vote
2
answers
62
views
Logistic regression coefficients compared to the mean in R
No doubt this is a stupid question but I can't seem to find help anywhere online.
I want to do a logistic regression with 2 independent variables.
Ideally, I would like to see how each variable ...
0
votes
0
answers
49
views
Logistic regression : contrast vs. changing reference group
I have a dataset with a dependent binary variable and one independent variable (with five categories). When applying logistic regression I have a model that calculates the coefficients of each of ...
2
votes
1
answer
42
views
Binary Logistic Regression with both dependent and independent variables
I have a dataset that has a binary dependent variable (choose 1=yes, 2=no) and the reasons given to choose each product. Independent variables include color (1=yes, 2=no), flavor (1=yes, 2=no), etc.
...
0
votes
0
answers
32
views
Do I need to exponentiate coefficients when I use Stata's logistic rather than Stata's logit?
I have a continuous variable and a binary variable. I am conducting logistic regression to see the relationship between them. Is it true that if I use the Stata command ...
2
votes
1
answer
30
views
Which statistical test should I use for a relationship between a continuous IV and a binary outcome? What about confounders?
I have a continuous independent variable ($x$) and binary dependent variable ($y$). I want to look at the relationship between them (I think I'd prefer regression to correlation) and I want to see how ...
0
votes
0
answers
69
views
Featrue importance according to logistic regression. in python [duplicate]
I've trained a logistic regression over my data. I checked feature importance:
...
0
votes
0
answers
30
views
0
votes
0
answers
37
views
0
votes
0
answers
32
views
Bayesian Logistic Regression: Correcting for Pre-Experiment Bias
In this post, I will outline a proposed procedure and ask for critical review of the approach's validity. The context is that in a business experiment, it is known that the response variable in the ...
1
vote
1
answer
106
views
Marginal effects in logistic regression and subgroup analysis
I am conducting a research project implementing exact matching to seek to isolate a marginal effect of a binary exposure variable on a binary outcome (via MatchIt in R). I am using logistic regression ...
3
votes
2
answers
206
views
Why is a logistic regression model using glm() different from a linear model with a logit transformation of the response using lm()?
I've only just started learning logistic regression so bear with me. As I understand it, the logistic regression model is as follows:
$$\log\left(\frac{p(X)}{1-p(X)}\right) = \beta_0 + \beta_1X $$
...
0
votes
0
answers
17
views
To nonparemetrically estimate the conditional mean of a binary outcome $E(D|x_1,x_2)$, can I use a logistic regression with flexible regressors?
Suppose $D$ is a binary outcome and $X_1$, $X_2$ are continuous regressors. I want to nonparametrically estiamte $E(D|X_1=x_1,X_2=x_2)$. I know that we could use local-constant or local linear ...
0
votes
2
answers
55
views
How do I know if logistic linearity assumption is met based on graphs?
How do I know if my logistic model's numeric variables violate the linearity assumption on the log(target variable)?
I am using the code found at THIS LINK. They graphed on the same data but I, ...
3
votes
1
answer
181
views
Logistic Regression with Non Binary Predictors
I have some data where each row has features and an output variable on the interval [0,1]. The output was likely the result of logistic regression, but we have no ...
0
votes
0
answers
28
views
How to read interaction coefficients in logistic regression?
How do i read age:gender1?
Gender1 is male.
...
0
votes
1
answer
30
views
Sanity checking survival model
I have some basic statistics foundations (Lean Six Sigma, Industrial Engineering in College), but I'm completely new to survival analysis, and relatively new to Data Science. So I'm looking to sanity-...
0
votes
0
answers
34
views
How should I check the linearity assumption in logistic regression of complex survey?
I am conducting logistic regression of complex survey, using the survey package in R. Do I need to check the linearity assumption before using ...
1
vote
1
answer
19
views
Having to use features which have low correlation with the target
I'm applying LogisticRegression on breastcancer dataset.
Steps : -
1- A correlation matrix resulted in only four features having ...
0
votes
1
answer
38
views
Can you use Multilevel Modeling (aka Hierarchical Linear Modeling) with Sequential Linear Modeling?
I have a question regarding the use of Multilevel Modeling (aka Hierarchical Linear Modeling) with Sequential Linear Modeling.
I am trying to perform Sequential Linear Modeling (with a binary outcome) ...
1
vote
1
answer
71
views
Decision boundary in Logistic regression?
According to me in logistic regression, we just try to get a line (polynomial)
and then based on which side the point is from that line the sigmoid gives ans>=0.5 or <0.5,
which we then ...
1
vote
0
answers
20
views
How to interpret negative association in multivariate analysis?
In no user of antidepressant group, the crude coefficient is 2.20 and the adjusted coefficient is 2.58. How can I interpret this in my thesis because anxiety risk is decreased in the adjusted model?
0
votes
0
answers
39
views
How to choose the right predictors and evaluate if a binomial glm model is good?
So, basically I have data with millions of observations on trees. The data was sampled in different time periods, so it is structured in a way that one line contains information on one tree on the ...
1
vote
0
answers
46
views
Interpreting the marginal effect for logit regression when the independent variable log transformed variable [duplicate]
I have run probit and logit regression analysis for a model, where the dependent variable is 'Purchase' which takes the value of 1 for purchase, else zero. The independent variable is the log of ...
0
votes
0
answers
20
views
Subject-specific effect in mixed_model with interaction
I have two groups of pupils, males and females in a number of schools. So, two-level data, pupils nested in schools. For each gender group, a logistic model was estimated with a school-level predictor ...
1
vote
0
answers
56
views
Formula to determine minimum sample size for logistic regression [duplicate]
I was researching logistic regression's critieria, and I found in many different sources that the ideal
sample size = (10 * #of explanatory variables) / (probability of least frequent observations)
...
1
vote
0
answers
42
views
Why We Don't Need Normal distribution on Independent and dependent variables in Logistic Regression?
I am Looking for the Reason That we do not Need Normal distribution on Independent and dependent variables in Logistic Regression, can anybody explain it ?
0
votes
0
answers
37
views
Mathematical formula for logistic regression mixed effects model
I am unsure how to write these models in mathematical notation when it is a model with nested random effects. This is how the models were created in R:
...
3
votes
1
answer
92
views
MLE in a logistic regression model
Assuming that the design matrix is of full rank, in non-degenerate cases of the logistic regression model, does the maximum likelihood estimator always exists and is always unique?
It would be really ...
0
votes
0
answers
39
views
What can be advantage of ordered logit/probit compare to multinomial logit other than dependent variable format?
I know that in case of some existing dataset whose dependent variable is ordinal, and I want to use it, it is recommended to use ordered choice model than typicall multinomial choice model.
But what ...
2
votes
2
answers
230
views
Purpose of regularization in Logistic Regression when dealing with separable data
Our training data will either be linearly separable or non-linear separable. In both cases the decision boundary is defined by:
$$ f(\mathbf{x}) = \mathbf{w} \cdot \mathbf{x} + b = 0 $$
and we ...
0
votes
0
answers
7
views
How to pick an appropriate test for a mixed design with an ordinal dependent variable
I am designing a survey project to try to see if image characteristics impact how pictured subjects are viewed by survey respondents.
As the design stands now, each survey respondent will be shown a ...
1
vote
0
answers
35
views
Insignificant variable in logistic regression with significant t-test
I have performed a study evaluating the diagnostic performance of a new test (T) (binary outcome) for a disease (D).
Logistic regression was performed with the disease state as a dependent variable, ...
1
vote
1
answer
81
views
Is 0.1542 Mcfadden's Pseudo R2 acceptable in general?
I am conducting logistic regression and got 0.1542 as pseudo R2, and it is based on Mcfadden's.
I've searched materials about this, because this is my first time that modelling logit models, and found ...
2
votes
1
answer
24
views
Assess too many inter-parameters interactions and combine relevant variables
I'm working on a multicenter prospective cohort study investigating the predictive accuracy of a sepsis score (qSOFA) to predict 30-days in-hospital mortality and using Stata 17 ME. The score has four ...
2
votes
3
answers
105
views
Continuous predictor variable has non-linear association with log odds of response
I'd like to know if a continuous predictor variable (sal) predicts a binary response (empty) in a logistic mixed effect model, but discovered there is a non-linear relationship between the predictor ...
1
vote
0
answers
24
views
Modeling multiple-choice data
In my experiment, participants had to make a series of decisions between different options. On each trial, they were presented with a different number of options to choose from, and each option varied ...
0
votes
0
answers
22
views
How can I figure out why two predictions from the same GLM have different compositions of predicted outcomes?
I'm creating a set of models predicting species presence and absence using binomial GLMs. I created a GLM model from some survey data, and I have made predictive maps for the current and future ...
1
vote
0
answers
15
views
How do you interpret $\chi^2$ p-values for a logistic regression, i.e.when R outputs the p-values sequentially with anova(model,test= Chisq)?
How would you interpret this output:
...
1
vote
1
answer
17
views
How do I justify this QDA expression for $a_k, ~b_{kj} $and $c_{jkl}$?
I need to solve the equation of
$$\log\left(\frac{\operatorname{Pr}(Y=k|X=x)}{\operatorname{Pr}(Y=K|X=x)}\right)$$
$$=\log\left(\frac{\pi_k \exp\left((x-\mu_k)^T|\Sigma|^{-1}(x-\mu_k)\right)}
{\pi_K \...
3
votes
1
answer
149
views
Does it make sense to convert a single dummy variable into a factor?
I have an R lecture script infront of me, where we are using logistic regression to try to predict the probability that an observation belongs to the target class (e.g. y_i = 1) or not (e.g. y_i = 0). ...
1
vote
0
answers
49
views
Is Logistic Regression Possible Using a Convenience Sample?
I've collected some survey data on homeless individuals, surveying their drug use, education level, age, gender etc. I hope to run a logistic regression to see how impactful homelessness (+other ...
0
votes
0
answers
39
views
Diagnostics of a logistic regression model using Firth's bias reduction method
I fitted a logistic regression model using Firth's bias reduction method. This model is aimed to explore significant factors related to my binary response variable (the outcome with rare events, i.e. ...
0
votes
0
answers
16
views
Automatically obtain optimum cutoff point for accuracy, sensitivity and specificity
Below is a code snippet to plot the accuracy, sensitivity and specificity. I can manually eyeball and see the cutoff point at approximately around 0.3. I was wondering if there anyway to print out ...
3
votes
1
answer
66
views
How to choose mixed effects (in logistic glmm)
I've constructed a logistic glmm for predicting if individuals of a single species of fish caught will have an empty stomach or not (1=emtpy, 0=not empty). My predictor variables are salinity (sal), ...
1
vote
1
answer
180
views
Fisher information matrix for logistic regression using the logit link
A question on a problem sheet I am working on asks us to find the Fisher information matrix (FIM) for the following setup:
Suppose that $Y_i \sim \textrm{Bin}(r_i, \pi_i)$ for $i = 1, 2, \dots , n$, ...
3
votes
2
answers
81
views
Logistic regression with two slopes and one intercept
I am using R to fit a logistic model to some data. The problem is as follows:
"The effects of the dose of poison $(x)$, in milligrammes, and the method of delivery $(w)$ on the
probability of ...
1
vote
1
answer
52
views
Using classification models on censored data?
I have a dataset in which I am trying to predict whether customers default on their loans or do not.
One of my variables is called DURATION which indicates the ...