Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [logistic]

Refers generally to statistical procedures that utilize the logistic function, most commonly various forms of logistic regression

0
votes
0answers
13 views

DFBeta for Binary Logistic Regression - Pregibon 1981

I am attempting to code the calculations for the DFBeta-like diagnostic for binary logistic regression proposed by Pregibon (1981): However, I am wrestling with fully understanding the matrix V in ...
5
votes
2answers
67 views

Whether to use factors in R and when ordered factors?

I've done some searching on StackExchange and become more and more confused about using factors and ordered factors in R modeling. I've encountered several circumstances: A variable is characters ...
0
votes
0answers
21 views

Grouped and ungrouped binary data: different results in R and Stata

I am working with grouped binary data in order to reduce my data from many individual observations (2.2m) to far fewer covariate patterns (approx 12.5k). Doing so should produce the same results in a ...
0
votes
0answers
19 views

Should I try to estimate logistic regression by F1 maximization, rather than Liklihood?

Assume I have a dataset of covariates $x_i$ and binary outcomes $y_i \in \{0,1\}$. I want to predict outcome for unknown a unknown $y_k$ given $y$. Quite common is to do this with logistic regression,...
4
votes
1answer
223 views

Scale dummy variables in logistic regression

Let's say I have a data set that mixes categorical and continuous features and I would like to study the relative importance of each feature in the prediction of a certain class. For that I am using ...
1
vote
1answer
18 views

How should I treat categorical variables for the purpose of the “One in 10 rule”?

Hope a basic question like this is alright! To avoid overfitting, we try to maintain enough cases for the least common event per explanatory variable; people usually recommend at least 10. How should ...
0
votes
2answers
29 views

Is downsampling okay for logistic regression if I only care about relative ordering (ROC AUC)?

I see a few discussions that suggest downsampling is never correct for logistic regression or suggesting that you have to do bias term corrections post-hoc: Downsampling vs upsampling on the ...
0
votes
0answers
14 views

How to interpret the interaction between multicategory categorical variables? [duplicate]

My outcome of interest is "disease or non disease". I have two categorical variables A (age group in years- 1-5, 5.1-10, 10.1-15, 15.1-19) and B (place of residence- Ba, Bb, Bc). I have fitted ...
0
votes
0answers
6 views

How to add a random variable to multinomial logistic regression using 'multinom' in R? [on hold]

I have a large data set with several animal level variables and I want to add farm as a random variable in R? Is this possible?
0
votes
0answers
18 views

Query on Logistic Regression error function

I am trying to understand the differences between Logistic Regression & Linear Regression and the answers here explains it very nicely. But, I had a question related to the logistic regression ...
0
votes
0answers
11 views

Help modeling rjags 2x2 logistic model with subjects and items as random intercepts (Bayes)? [on hold]

I'm trying to set up a Bayesian 2x2 logistic GLM model in rjags. would like to see if I have set up everything correctly (are the priors reasonable, is the GLM reasonable?). Below is the model in ...
0
votes
1answer
25 views

Propensity to pay modelling

I am trying to build a propensity to pay model given an intervention to a customer. Context: The population I am dealing with are customers who were supposed to pay some amount on a certain date ...
0
votes
0answers
11 views

How to manually predict/deploy Logistic Regression Model? [duplicate]

After fitting a Multinomial Logistic Regression Model with sklearn.linear_model.LogisticRegression I get the coefficient matrix and intercept. I now want to use these to manually predict categories. ...
0
votes
0answers
10 views

Keras L2 regularized LogReg with Dense Layer yields too small bias

I just started using Tensorflow and Keras. To start with I thought it might be a good idea to implement a logistic regression for practise and testing. Having done that I am facing the problem, that ...
0
votes
1answer
31 views

Calculating Log-Likelihood of Logistic Adaptive-Quadrature GLMM for Comparison with Fixed Model

Fitting a binary logistic GLMM here, with ungrouped data (all responses either 0 or 1). It says in this thread and in the documentation of anova.merMod that the ...
0
votes
0answers
15 views

proc logistic : Standard Error displayed in the “Analysis of Maximum Likelihood Estimates”

I have a question about the Standard Error displayed in the “Analysis of Maximum Likelihood Estimates”. Usually I see researchers paying attention to the OR and they omit interpreting this value. ...
1
vote
1answer
41 views

Best model to predict if the client will buy our product or not

I would like to find a good model to predict which client will buy my product in 2018. I would like to have opinions on which method can fit my data to predict which client will the product A in 2018. ...
1
vote
0answers
24 views

Predictive models to predict sales with r

I would like to find a good model to predict which client will buy my product in 2018. I would like to have opinions on which method can fit my data to predict which client will the product A in 2018. ...
0
votes
0answers
25 views

Clogit maximum likelihood [closed]

How do I get the maximum likelihood value of a fitted clogit model in R? I would like to perform likelihood ratio tests between different model variations. EDIT: Some clarification: I meant the ...
0
votes
0answers
12 views

How to perform One vs One (All vs All) Classification?

Say I have 4 possible classes (C1 to C4) and hence 6 possible models. My question is that in a model, say C1 vs C2, how am I supposed to handle training dataset when a given instance's class is ...
1
vote
0answers
24 views

Delta Method Average Marginal Effects Multinomial Logit

Following the incredible demonstration by Jeff Pitblado how to calculate using the Delta Method the Standard Errors for Average Marginal Effects of a Logit Model. In particular, for the marginal ...
0
votes
0answers
25 views

Logistic regression when the number of options differs by group?

I have data from a laboratory experiment in which I look at the effect of expanding the choice set on a particular option being chosen. The idea is that introducing an Option "B" reduces demand for an ...
4
votes
1answer
181 views

u-shape for logistic regression?

I'm stuck and have real problems what to interpret from my current results. Maybe you can help me out? Thanks! Lets say... I'm investigating on the influence of health factors on dying. Dependent ...
0
votes
0answers
12 views

CV.GLMNET warnings convergence

I get the warnings when I try to perform a cross validation with cv.glment for a Logistic penalized model ...
0
votes
0answers
19 views

How does Outliers affect logistic regression? [duplicate]

I see this is answered here : How does outlier impact logistic regression? But I am not able to understand how does it affect logistic regression , can anyone take a step back and explain in a bit ...
1
vote
1answer
43 views

How can I test whether two logistic regression coefficients are identical?

3 variables (1 continuous (X) and 2 categorical (A & B)) predict 1 dichotomous variable in logistic regression. Both variables A and B are dichotomous and are coded with 1 (reference category) ...
0
votes
0answers
42 views

using boxcox to help normalize my data

Why is it that doing a Box Cox usually reduces my adjusted R^2? Sometimes it makes my data look even worse than before. Something else I noticed is that after doing the Box Cox test, I can do it again ...
0
votes
0answers
10 views

Decision boundaries of LDA and logistic regression

In an exercise we had to draw the decision boundaries between two samples from two different classes for Linear discriminant analysis (LDA) and logistic regression (LR). I know how these two ...
1
vote
0answers
13 views

Discussion of Robustness

I have to include a discussion of robustness in my report. What are ways to discuss the robustness of my models? I run several logit models. But I don't know how to include something about the ...
0
votes
0answers
19 views

How to best evaluate a cross validation of a logistic regression using cbind

I ran a logistic GLMM using cbind for the response: ...
1
vote
1answer
60 views

Deriving score function for logistic regression

So I would like to derive the score function for my GLM, which in this case happens to be logistic regression. My approach is to write the pdf as an exponential family, I get it from these slides. I ...
1
vote
0answers
14 views

Adjustment for binary classification with differing proportions

My data had a different proportion of 1 (20%) and 0 (80%). I found here that we can use upsampling to get a good sensitivity. The caret package in ...
0
votes
1answer
15 views

Biased dependent variable on logistic regression

I am working on a logistic regression with a biased dependent variable, (only 22 observations for 0 but 222 observations for 1) on SAS program. In such case, what can I do to transform the dependent ...
0
votes
1answer
16 views

The relationship between probability in classification and real values in regression problems?

Say I have a problem of predicting the house price. Originally it is a regression problem. However I consider two classes (expensive houses and not) by set the threshold of 100.000$. Say I develop a ...
0
votes
0answers
19 views

Model selection in Logistic regression [closed]

comparing 4 logistic regression models Dear All, In the attached excel snapshot , i have compared 4 logistic regression models. I am basically classifying a movie hit or flop based on certain ...
0
votes
0answers
10 views

Getting “invalid type (list) for variable” when fitting a logistic regression model [migrated]

I am trying to fit a logistic regression model with all predictors on training data, but I keep getting errors. I got this: ...
0
votes
0answers
30 views

Test Set Probabilities and Accuracy [duplicate]

Say we've got a logistic regression model $M$ used as a classifier in a binary case. Now we take a test set $\tau=\{(x_1,y_1),...,(x_n,y_n)\}$, each test sample is assigned with $\hat{\pi}_i=P(y_i=1|...
0
votes
1answer
21 views

Logistic Regression predict_proba keeps on increasing when I increase the value of the most predictive feature

I am applying logistic regression to predict a target variable ( success or no-success).I added some new features, tested my AUC.My AUC initially was 0.6, and it increased to 0.7 when I added ...
2
votes
2answers
97 views

conditional three-level model and repeated measures using glmer in R

I have been trying to find out the most adequate formula for my data but I found no example that reflects the structure of my data, as pictured in figure above. My data is dichotomous [correct/...
0
votes
0answers
11 views

Interpreting one hot encoded factors in logistic regressing [duplicate]

All my variables, both DV and IV, are categorical and I have to do the one-hot encoding. After I did the one-hot encoding, I am totally confused. What does the co-efficients mean? Lets say I have a DV ...
4
votes
1answer
77 views

Binomial Regression “logit” vs “cloglog”

I am using a binomial regression with a categorical factor with 9 levels (named 'treat.group') and sample sizes in each group from 1-8. 1 treatment group has all positive cases (i.e., 1's) - and this ...
0
votes
1answer
11 views

how to estimate prognostic core for a continuous, multinomial, and binary treatment, respectively

Quoting David Hajage and Finbarr Leacy, respectively: "Introduced by Hansen in 2008, the prognostic score (PGS) has been presented as ‘the prognostic analogue of the propensity score’ (PPS). ...
0
votes
0answers
26 views

Is this a hierarchical problem or basic logistic regression?

I have some observations along with corresponding covaristes/features. The observations themselves are Binomial variable outcomes of varying sizes. For example: 0 successes 1 failure 3 successes 22 ...
0
votes
0answers
24 views

How Can I Test for Multicollinearity in my Categorical Predictor Variables when Doing Ordered Logistic Regression?

I have a dataset where my dependent variable measures 'How much Trump’s locker room video should have mattered in the election'. The categories are coded between 1-5, where 1 represents 'should not ...
1
vote
2answers
45 views

Forecasting in R with a growth function?

How would I go about forecasting future population with a growth function in R? I'm trying to fit a growth function to the sales of EVs in the world. One assumption I might want to make would be one ...
0
votes
0answers
12 views

How to account for different numbers of trials for percentage data in R?

I'm trying to figure out a correct way to set up a linear mixed model (or similar) for a decision-making experiment. Design was as follows: 2 x 2 within-subjects DV: count/percentage More ...
0
votes
0answers
19 views

How do I analyze a difference in distributions?

I have a dataset with two secondary school cohorts and their status after 7 years in school: ...
8
votes
2answers
196 views

Expectation of Inverse Logit of Normal Random Variable

I have a random variable $Y = \frac{e^{X}}{1 + e^{X}}$ and I know $X \sim N(\mu, \sigma^2)$. Is there a way to compute $\mathbb{E}(Y)$? I have tried to work out the integral, but haven't made much ...
0
votes
1answer
61 views

Sign of coefficient in single variable logistic regression seems to contradict graphical analysis

I have a 5-level ordinal independent variable ('ACT1_2') and a Boolean output variable ('target'). ACT1_2 is a response to a survey question. When I was doing some exploratory data analysis, I graphed ...
0
votes
0answers
12 views

Comparing logit estimates across surveys

I'm estimating adjusted odds-ratios from two separate, nationally-representative surveys. I'd like to conduct hypothesis testing on the estimates, to test if there is a detectable, statistical ...