Skip to main content

All Questions

Filter by
Sorted by
Tagged with
0 votes
1 answer
50 views

Controlling for variables in multilevel logistic regression modeling

I am new to mixed models and want to calculate a binary mixed model. However, I can't make much sense of the results and am hoping someone can help me out. So I want to calculate the probability of a ...
Sternengezuecht's user avatar
1 vote
1 answer
114 views

R - How to Address Small Number of Groups in Multilevel Logistic Regression?

I'm implementing a multilevel logistic regression model in R to predict a binary courtroom decision with 8 categorical and 7 numerical predictors. I believe a multilevel model to be appropriate ...
galaxy-friday1017's user avatar
0 votes
0 answers
71 views

Looking for advice on analysis plan using a mixed linear regression model

I am writing the preregistration for a study and I wanted to check whether my analysis plan can be improved. Data description I attached a picture of some random example data to give you a sense of my ...
Leon's user avatar
  • 21
0 votes
0 answers
92 views

interpreting assumption tests for multilevel modelling

I have run a multilevel logistic regression model using the glme package in R. I now need to test the assumptions but I am not sure how to interpret the graphs I get, nor whether I'm doing the correct ...
Paige Cox's user avatar
0 votes
1 answer
3k views

Residual diagnostics in DHARMa for multilevel logistic regression

I'm running a multilevel logistic regression, and have been trying to look at residual diagnostics using the DHARMa package. My data is copy-pastable from here and the following code should run ...
user1205901 - Слава Україні's user avatar
-1 votes
1 answer
2k views

Hierarchical logistic regression package in R

I'm working on a logistic regression model; the purpose of the analysis is to identify factors that influence use of an app - the DV being use/no use, and IVs being a couple of numerical and ...
user290071's user avatar
1 vote
1 answer
566 views

three-level logit regression with random slopes

I am trying to find the correct code for a three-level multivariate logit regression. I have protest participation, education level, and income data from a number of countries. Data are also divided ...
Eugenio's user avatar
  • 11
2 votes
1 answer
166 views

Choosing a regression model for proportion data at the school level

I am working on a dataset where I have the percentage of students who passed at a test for each 189 schools in my sample. The data is aggregated, so I have the total number of student who sat the test ...
Perrine's user avatar
  • 21
2 votes
1 answer
252 views

Interpeting multilevel logistic regression

I ran a multilevel logistic regression, and I rescaled the variables using the scale function. The variables in my data set are centered around the mean and ...
Keith's user avatar
  • 123
2 votes
1 answer
321 views

Multi-level logistic regression - probability received from the intercept is different from the original sample

I am running multi-level logistic regression in order to perform case-mix adjustment (corrected estimates) for 100 clinics. I got some results but they are somehow suspicious to me. I noticed that ...
Shkis's user avatar
  • 21
0 votes
1 answer
255 views

How to express mixed logistic regression in formal notation?

I'm working with glmer in the lme4 package in R to estimate a binary outcome variable from ...
Cole Robertson's user avatar
1 vote
0 answers
28 views

Multilevel logistic regression for 3 by 3 factorial design? Sparse matrix problem

For the sake of example, let’s say this is a costumer research study. I have a binary outcome (x) that is either making a purchase or not making it. I have three independent variables: store ...
Emy's user avatar
  • 290
1 vote
3 answers
386 views

How do I model a dependent variable that is a proportion?

Problem I am trying to test gender differences in the risk propensity of investors related to specific kind of stocks. More specifically, I want to the test the hypothesis predicting that female ...
SanMelkote's user avatar
1 vote
1 answer
3k views

Confidence intervals for emmeans estimates after multilevel binary logistic regression

I ran a multilevel binary logistic regression / generalized linear mixed-effects model in R, and then ran the following code to get post-hoc tests for a significant A x B interaction where A is a ...
MGy's user avatar
  • 315
1 vote
0 answers
347 views

Logistic regression with unbalanced sampling [duplicate]

Lets say I have a dataframe that looks like this: ...
Simon's user avatar
  • 2,361
0 votes
0 answers
35 views

R/Lme4: Trouble specifying random effects properly in a repeated measures logistic HLM

I am having trouble getting appropriate random effects output when using the glmer command in lme4. My dataset is a long-form ...
Andrew Erhart's user avatar
4 votes
1 answer
655 views

GLMM with time-series covariance and binary response variable?

I have a binary response variable that was measured at irregular time intervals for a number of individuals. I want to fit a GLMM that accounts for the time-series covariance within individuals. I ...
SlowLoris's user avatar
  • 1,096
9 votes
1 answer
2k views

Estimating Multilevel Logistic Regression Models

The following multilevel logistic model with one explanatory variable at level 1 (individual level) and one explanatory variable at level 2 (group level) : $$\text{logit}(p_{ij})=\pi_{0j}+\pi_{1j}x_{...
ABC's user avatar
  • 1,705
4 votes
1 answer
2k views

Multilevel logistic regression : Simulation Study

I have written R codes for simulating data from Multilevel logistic regression model . I focus on the following multilevel logistic model with one explanatory ...
ABC's user avatar
  • 1,705
1 vote
0 answers
86 views

Syntax for a logistic multilevel analysis in R? [closed]

I am looking for advice on what package and syntax to use in R for modelling a logistic multilevel analysis with variables as follows: Dependent variable (binary) = 0 or 1 Independent variable 1 (...
RobJackson28's user avatar
0 votes
0 answers
56 views

Need help setting up multilevel logistic regression

I am trying to see the effect of a certain intervention in schools. The outcome variable is binary. We have students within schools. Also students' age is a covariate (doesn't changed before and after ...
Brian's user avatar
  • 331
1 vote
0 answers
5k views

How to estimate ICC (degree of clustering) in hierarchical logistic regression?

I am exploring hierarchical logistic regression, using glmer from the lme4 package. To my understanding, one of the first steps in multilevel modeling is to estimate the degree of clustering of level-...
Joel Chan's user avatar
4 votes
3 answers
5k views

Stepwise model selection, Hosmer-Lemeshow statistics and prediction success of model in nested logistic regression in R

is it possible to do stepwise (direction = both) model selection in nested binary logistic regression in R? I would also appreciate if you can teach me how to get: Hosmer-Lemeshow statitistic, Odds ...
Richard Muallil's user avatar