Skip to main content

All Questions

Filter by
Sorted by
Tagged with
0 votes
0 answers
67 views

Interpreting the Y-axis of a visreg visualizaion of a binominal logistic regression model

This is a long post, apologies for the length. In sum, I just want to know what the Y-axis represents in the below plots. Here's the background: I have a binomial logistic regression model in which ...
Wangana's user avatar
  • 153
6 votes
1 answer
491 views

Visualization of a mixed effect logistic regression model?

Can you suggest me which graphs I should do to visualize a mixed effects logistic regression model with three fixed predictors (all categorical) and two random intercepts?
Katherine's user avatar
  • 175
0 votes
0 answers
49 views

Gap in Partial Residuals Plot for Logistic Regression Model

I'm working on a logistic regression model using R with a binary outcome (prescribed DPP-4 inhibitors or other drugs) and several predictors. My model is specified as follows: ...
jos0909's user avatar
  • 51
1 vote
1 answer
887 views

Visualising log odds from logistic regression model in R

I'm working on a logistic regression analysis using R and aiming to visualize the effects of the predictor "age" on the binary dependent variable "domestic violence." My dataset ...
user avatar
3 votes
1 answer
421 views

Gam plots y-axis range is different for model that that from predict function

I got some idea about gam (generalized additive model) plot from a course of Noam Ross. However, I have several confusion and got stucked. I fit a logistic gam and can interpret by using ...
Ly T's user avatar
  • 41
0 votes
0 answers
42 views

statistics linking McFadden's $R^2$ to the relationship between two binary variables, akin to correlation (Copula with Bernoulli margins?)

My goal is to create a visualization of the strength of the McFadden's $R^2$ of a (multinomial) logistic regression, where McFadden's $R^2$ is $1-\dfrac{LL(M_1)}{LL(M_0)}$, involving the ratio of the ...
Dave's user avatar
  • 67.2k
1 vote
0 answers
912 views

What is the relationship between the threshold and decision boundary in logistic regression?

I've been studying Logistic regression for a few weeks and I have a doubt. According to what I've been studying, Logistic regression fits a sigmoid function $$ \frac{1}{1+e^{-(wx+b)}}$$ to the data ...
qseb59's user avatar
  • 21
1 vote
2 answers
2k views

How to plot interaction term in logistic regression in R

I'm working on the logistic regression with interaction term between gender and education years as below. gender is a factor varibale with two value and eduyears2 is a numeric variable. and the ...
Xingchen LIU's user avatar
0 votes
1 answer
475 views

Visualization for univariate binary logistic regression with a categorical independent variable

I am performing a univariate logistic regression where the outcome is obviously 0 or 1, and the independent variable has 18 different levels. I am looking for a way to graph the results of this ...
Scorks's user avatar
  • 1
6 votes
3 answers
1k views

Diagnostic probability plots in logistic regression

There is some discussion on StackExchange about diagnostic plots for logistic regression, but all are focusing on "residuals", for which there is not even a consensus how to define them for ...
cdalitz's user avatar
  • 5,730
0 votes
0 answers
42 views

Interpretation of a regression coefficients plot

I am a noob of regression so this might be a very simple question. I have seen many plots of the regression coefficients but I am not sure how to interpret and make these plots. For example, below is ...
Tom Leung's user avatar
  • 195
0 votes
0 answers
188 views

Principal component Analysis using median as the center

Please I’m performing an analysis which requires data reduction technique. After preliminary analysis the data is suitable for principal component analysis and I’m comfortable using R but I want to ...
Walley Adex's user avatar
0 votes
1 answer
1k views

Interpretation of logit versus independent variable plot for logistic regression

I plotted the log odds of my outcome variable against my predictor variables, hwt and ist. There is a hard vertical line in my hwt plot and a hard diagonal line in my ist plot. I have two questions: (...
C_Marie's user avatar
  • 39
1 vote
1 answer
718 views

Entering a quadratic term in a logistic regression model

I’d like to know how to plot my quadratic relationship. I ran a logistic regression model that included a quadratic term for age on support for helping at-risk juveniles (1=want to help, 0=does not). ...
CuriousAF2's user avatar
2 votes
0 answers
1k views

STATA margins dydx with over(.), continuous variables and interaction effect

I have a logistic regression model with two variables (A and B), which I also interact. A and B are both continuous. After the estimation I want to use the margins command to plot the marginal effect ...
Peter Pender's user avatar
5 votes
1 answer
2k views

Graphing Simple Presence/Absence Data?

I have to create a graph (maybe cdplot) for a final project. I have presence/absence data for around 20 years for a species of frog. ...
Melissa Duda's user avatar
0 votes
0 answers
975 views

R plot Odds Ratio for each value in logistic regression

I am trying to replicate the method in section 3a of this paper where, for a logistic regression model, they plot the functional relationship between a continuous variable and the odds for developing ...
cccnrc's user avatar
  • 229
1 vote
0 answers
158 views

Plotting predicted common OR and 95% CI from an ordinal logistic regression model

I fitted an ordinal logistic regression model with a dependent variable of four ordered responses with one continuous predictor variable and 6 confounders, using the polr package in R. It looks like ...
BJ_Kim's user avatar
  • 11
0 votes
1 answer
388 views

With multiple imputed data, how do you probe a categorical-by-categorical interaction in logistic regression?

I am working with 10 multiple imputed datasets in SAS. I used the command PROC SURVEYLOGISTIC to fit a multivariate model with 6 predictors (3 dichotomous and 3 categorical) and their interaction ...
Ahinoa 's user avatar
0 votes
0 answers
139 views

Plotting probabilities from firth's logistic regression with ordinal predictor in R

I have fit a model using firth's logistic regression. library(logistf) Model <- logistf(a~b, data = data) Where b is an ordinal variable with 3 levels. ...
Harry's user avatar
  • 306
3 votes
1 answer
925 views

Plot ROC curve in R with the PRROC package

After many hours of research, trial and error and frustration I hope someone here will be able to guide me in the right direction. I am fairly new to R and statistics and can not wrap my hand about ...
Enigma's user avatar
  • 35
2 votes
2 answers
74 views

How to plot results from analysis of different datasets into one graph

I conducted the same logistic regression analysis for five different datasets. Now I would like to plot the results (the Odds-Ratios) all into one graph. Is this even possible? And how would I do it?
Tom's user avatar
  • 21
3 votes
1 answer
2k views

Prediction plot and confidence intervals problems. Is this the best way to plot the relationship here?

I'm trying to convey some findings in which a score from 1-10 seems to predict disease status (binary). I predict yhat and plot yhat with a quadratic fit against my predictor (score). It looks ...
Paze's user avatar
  • 2,331
1 vote
1 answer
295 views

Simple Explanation about Logistic Regression Plot

I was reading an article about logistic regression and I got confused by one of the pictures: https://towardsdatascience.com/introduction-to-logistic-regression-66248243c148 First animated gif from ...
German Demidov's user avatar
2 votes
3 answers
5k views

How can we plot the predictions of logistic regression model in order to see whether it is good?

I am working on a basic problem that requires developing a logistic regression model (the output is True/False, whether a person gets cancer). I have used glm() in R and got the model with some ...
Gemi Khong's user avatar
1 vote
1 answer
85 views

Visualising a table of proportions

I have a table like ...
J.Smith's user avatar
  • 11
0 votes
1 answer
414 views

Fitting a logarithmic trendline on already logged values

This is the situation. I am running trials with a population simulator, which produces various outputs (y), with the variance of these outputs being dependent on the number of clones (x) (recursions) ...
GabeMath's user avatar
0 votes
0 answers
49 views

Plotting in logit (regession)

I'm trying to do something a little funny here with a logistic regression. I have a binary outcome, a time variable, and some confounders. I wanted to plot the monthly mean of the outcome in logit and ...
svenhalvorson's user avatar
2 votes
0 answers
499 views

Interpretating `allEffects` and missing p-values

I need to run a logistic regression with random effects, about wheelchair users and hinderance due to environmental barriers: ...
B. Rentrug's user avatar
0 votes
2 answers
7k views

How to find cutoff point in Logistics Regression using R

I have run a Logistics Regression model in my data set. Below is the code: ...
user avatar
1 vote
0 answers
123 views

Interpretation of P-value vs. Plot when performing Logistic Regression in R

I am new to R and Logistic Regression so I will try to be as clear as possible. I did the following really as a test case as proof of concept of what I've been trying to learn. I have performed ...
user10461773's user avatar
6 votes
2 answers
923 views

What is the best way to display confidence intervals around a proportion?

I was reviewing an article about the effectiveness of a vaccine and it expressed these in % effectiveness = 1 - odds ratio. So far, so good. But they showed confidence intervals around the %'s, both ...
Peter Flom's user avatar
  • 128k
3 votes
0 answers
1k views

Visualizing the smooth terms in a logistic regression (GAM model)

We have a a logistic regression model (i.e. family=binomial) estimated with gam of the mgcv ...
Tamas Ferenci's user avatar
1 vote
1 answer
469 views

Visualizing the logistic regression cut-off threshold

I have a binary dependent variable dataset to be inputted into a pre-trained logistic regression model. I need to choose an appropriate cutoff threshold $P$ such that for a data point $x_i$ with ...
Set's user avatar
  • 1,463
2 votes
1 answer
2k views

Surface Plot for Logistic Regression Interactions [closed]

I'm trying to visualize some different interactions from a logistic regression in R. I'd like create a surface plot of the predictive model with two predictor variables along the x and y, then the ...
jkdoyon's user avatar
  • 23
4 votes
3 answers
7k views

How to visualise coefficients of a Binomial Logistic Regression?

Hello all! Do you have an idea how best visualise the data from this table knowing they are coefficients of binomial logistic regressions? What I would like to visualise is a confrontation between ...
Mab's user avatar
  • 41
0 votes
0 answers
214 views

Plotting the results of a logistic regression

I ran a logistic regression in R and then I went to plot it and I'm not sure how to understand the plot. Here's the logistic regression - ...
Sebastian's user avatar
  • 549
2 votes
0 answers
72 views

binomial distribution "flower", ratios vs direct

I am working with a set of data that is very similar to the binomial distribution. It is closely simulated by a random binomial variable. In the real data, there is reason to believe there are ...
Chris's user avatar
  • 1,259
0 votes
0 answers
663 views

Interpreting decision boundary - Logistic regression in R

I have plotted the Decision boundary for my logistic regression but I don't clearly understand how to interpret it. How do I know on which side of the boundary y=1 and on which y=0? Here is the plot: ...
N_D_'s user avatar
  • 1
15 votes
2 answers
3k views

How can Logistic Regression produce curves that aren't traditional functions?

I think I have some fundamental confusion about how the functions in Logistic regression work (or maybe just functions as a whole). How is it that the function h(x) produces the curve seen in the ...
muZero's user avatar
  • 335
2 votes
1 answer
4k views

Should predicted probabilities from Logistic Regression correspond with percentages?

I have conducted a logistic regression in order to identify whether student status (student/non-student), time period (time 1, 2 or 3), or condition (condition 1 or condition 2) predict a binary ...
DrJay's user avatar
  • 329
1 vote
2 answers
107 views

Why does my model suggest Gall is not significant, when the plot suggests it is?

I have trouble with interpreting the output of a general linear model, which I have fitted to some data. Here are my data: ...
RLover's user avatar
  • 11
1 vote
1 answer
191 views

Interaction visuals in logistic regression

I am running a logistic model and am looking specifically at a 3 way interaction. Here is some descriptives on my data: Outcome: mortality (y/n) Var 1: gender (M/F) Var 2: dichotomous lab value (above/...
Lucy's user avatar
  • 209
1 vote
1 answer
2k views

Interpreting predicted probability plots for a binomial GLM [closed]

Even though this may first appear coding-related, I am not interested in the particular code, but rather in the interpretation of the resulting plots. Therefore, I though this is more appropriate here ...
Tilen's user avatar
  • 840
2 votes
0 answers
130 views

What to plot in order to pre-analyze the data before building a logistic model?

What to plot in order to pre-analyze the data before building a logistic model? In linear models I was able to do a scatter plot of just the response values and see, whether they're distributed "...
mavavilj's user avatar
  • 4,129
5 votes
2 answers
6k views

Slope and intercept of the decision boundary from a logistic regression model

I was plotting a 2D illustration of a simple logistic regression model, which takes two variables into account. The plot shows the datapoints in terms of the two variables in addition to the decision ...
Error404's user avatar
  • 1,441
4 votes
2 answers
4k views

How to plot logistic models with many categorical variables?

How to plot logistic models with many categorical variables? Specifically, I'm creating the following kind of model (more variables are still to be added): ...
mavavilj's user avatar
  • 4,129
1 vote
0 answers
781 views

Graph logistic regression with categorical predictors

I am running a multilevel analysis for binary outcomes (i.e., similar to binary logistic regression), trying to predict use of negations based on two categorical predictors (patient type (MUS vs. MES),...
I. Stort's user avatar
3 votes
1 answer
179 views

When plotting predictions over linear predictors, what's a "informative" range for linear predictor values?

When plotting predictions over linear predictors, what's a "informative" range for linear predictor values? The reason to ask is this: This is a very common plot in logistic regression, but isn't ...
mavavilj's user avatar
  • 4,129
3 votes
0 answers
270 views

How to present predicted probabilities for multiple predictors

I have performed a multinomial logistic regression using the multinom function in R. I have one categorical response variable with 3 levels, 3 continuous predictors and 3 categorical predictors (with ...
LucaS's user avatar
  • 867