3,722 questions
0
votes
0
answers
24
views
LMest - Reference of the multilogit - how to know the significance [migrated]
We run latent transition analysis with covariates using LMest and with the help of the available Literature (e.g., Bartolucci et al., 2017) and what we found on the web, we were also able to interpret ...
0
votes
1
answer
54
views
Logistic regression, print several curves on the same graph
I'm working on a project, and I need to do a graph where there is two curves of logistic regression. I'd like to display the curve of the disease status (encoded by 0 and 1), along with the Age (...
1
vote
1
answer
67
views
Combining lines in a predicted probability plot without changing the regression model
I have a dataset with a binary outcome income and two continuous predictors, age, and education_num. I'm fitting a logistic regression model with a natural spline for age and an interaction with ...
1
vote
1
answer
33
views
Bayesian ordinal logistic model using rstan
Is my syntax below for an ordinal logistic model correct? I get an error message which I don't understand.I got the code from a published paper illustrating a graded response model (ordinal logistic, ...
2
votes
1
answer
266
views
Multinomial regression with statsmodels.formula.api is not working for me
Whenever I try to build a multinomial regression using the R-style formula approach in statsmodels in Python, I get ValueError: endog has evaluated to an array with multiple columns...
Here's a ...
0
votes
0
answers
38
views
Conditional logistic regression with robust standard errors for data matched with replacement
I am working with matched case-control data that used risk-set sampling with replacement (a control can be matched to more than one case). I am trying to figure out the correct syntax for conditional ...
0
votes
1
answer
100
views
Simulating a Discrete-Choice/Multinomial Model
I want to simulate a Discrete-Choice/Multinomial model. Consider the situation where I have 100 people each with four choices (1 = air, 2 = bus, 3 = car, 4 = train).
There is a baseline preference ...
0
votes
1
answer
44
views
LogisticRegression sometimes doesn't work
I am using LogisticRegression in python to train a model, I found when I use dataset below,the model cannot learn a proper prediction method.
But when I magnify the data 100 times, the answer is right....
0
votes
1
answer
71
views
Issue with home-made forest plot in R ggplot2
I'm creating a forest plot for my logistic regression model in R. I am not happy with the forest plot created by some packages, especially because the names of the predictors and the levels of the ...
1
vote
1
answer
87
views
How to get weighted bootstrapped estimates and CIs from a phyloglm function of the phylolm package
I constructed a phylogenetic logistic regression model for a binary response variable using the phyloglm() function from the phylolm package.
The code looks like below (predictor and response names ...
3
votes
1
answer
51
views
How can I impute missing date values by using the average difference between two date columns?
Thanks in advance for any help you can provide. I have a dataset containing some healthcare data and am trying my hand at using python for EDA/regression modeling on the set. I have one date column [...
4
votes
1
answer
95
views
glmmTMB issue with number of observations and groups
I have a dataset with 125 animals across 3 sites and 100500 observations. Both show up properly when looking at the structure of the data but when I run the model with an updated data frame (I added a ...
0
votes
0
answers
26
views
Logistic regression variables correlation but low GVIF
I'm making a logistic regression model to predict female presence on boards in tech SMEs. I was going to take out companies with only 1 employee, as they don't have boards, but my supervisor told me ...
2
votes
1
answer
62
views
R: predict.glm for a logistic input produces a linear model [duplicate]
I've got a bit of a headscratcher from what I thought was going to be a routine fit. The logistic regression model I fit through the glm function instead gives a linear model when I use the predict ...
1
vote
1
answer
383
views
Why is glmer function for logistic regression taking so long to run in R?
I am running a multiple logistic regression model. The dataset has ~350,000 observations, with the outcome being a binary 0/1 dichotomous variable. Most predictors are also dichotomous but there are ...