Skip to main content

All Questions

Filter by
Sorted by
Tagged with
3 votes
0 answers
18 views

How to nest multilevel model (or to nest at all)?

I'm trying to handle some data and get some insights from it. The data includes a binary outcome variable, so I am using glmer. The relationship is whether age groups are more likely to engage in the ...
Scott's user avatar
  • 31
0 votes
1 answer
66 views

Binary response outcome DV with two crossed repeated measure factors and one between subject factor. Should I use Generalized Linear Mixed Model?

I have a complex experimental design with two within-subject factors and one between-subject factor, where my outcome variable is measured on a binary response. Country (Between-subject, 2 levels: A ...
Moka's user avatar
  • 1
1 vote
1 answer
216 views

Assumptions of a multilevel logistic model

Regarding to another question I'd like to ask the same way but for a quite more specific case. What are the general assumptions for a logistic multilevel regression? What are the reasons behind these ...
ghost_trevor's user avatar
1 vote
0 answers
165 views

Multilevel glmer model predicting rare event -- Troubleshooting model convergence issues (degenerate Hessian)

I have a massive dataset of social media posts. I want to assess whether several variables are related to a binary outcome. Because some people posted more than once, I am trying to account for this ...
Rachel's user avatar
  • 33
2 votes
1 answer
100 views

Three-tier Multi-Level Model: violation of the assumptions of normality and heteroscedasticity

I am working with educational data. To do so, I am using the classic three-level hierarchical linear model (student, class and school). I am using the R software lmer package and the stata software. ...
Ricardo Linhares's user avatar
1 vote
0 answers
42 views

glm() vs. glmer() on repeated measures

Say I am curious about whether the relationship between class rank (rank) and passing a final test (pass) is dependent upon days until summer vacation (days until summer). In my dataset, I have Mary, ...
hy9fesh's user avatar
  • 131
0 votes
1 answer
337 views

How to write a multilevel GLM poisson model in mathematical notation?

I have constructed a Poisson GLM (modeling it Bayesian in brms) as a part of a social network analysis, predicting counts of outgroup/ingroup connections over two different cohorts/years of a study ...
Prams's user avatar
  • 11
4 votes
1 answer
405 views

Best practice MLR vs GLM(M)

I am modelling timeseries of organism traits (7 different traits in total) using GLM(M)s in R. The data was collected at very irregular intervals and from 6 different locations. For every location 5-...
Globoquadrina's user avatar
1 vote
0 answers
42 views

multilevel model specification

We had participants complete a virtual maze. We showed the participants the correct path through the maze, then had them complete the maze 10 times. The maze consisted of 15 decision points, which are ...
Zach H's user avatar
  • 65
2 votes
0 answers
24 views

Is it possible/reasonable to use multimembership slope term?

I have been reading about multimembership models, in which there is a random intercept effect for each level, and an observation can belong to more than one of the levels - a simple example of a ...
Hannah's user avatar
  • 41
1 vote
0 answers
164 views

multi-level model and hierarchical model

Are there any differences between multilevel modeling and hierarchical models? I once heard that hierarchical models is just one type of multilevel model.
user3269's user avatar
  • 5,282
1 vote
0 answers
92 views

Why is the residual deviance higher for the more complex model?

The residual deviance is higher for the more complex model. Why is this the case? Can I compare the residual deviance of a GLM and a multi-level model in this way or should I use something else ...
user553480's user avatar
1 vote
0 answers
66 views

Hierarchical Poisson regression with a normal group level

I have a group of items. I model each with the Poisson regression (counts), but one of the regression coefficients is modelled on a group level using the normal distribution. Assuming there are $m$ ...
Artem Moskalev's user avatar
7 votes
1 answer
9k views

interpreting output for glmmTMB for zero-inflated count data

I have been trying to read all the documentation I have, but I'm still not sure what the difference is between the "conditional" and zero-inflated models in the output of the glmmTMB. Below ...
alessothegreat's user avatar
2 votes
1 answer
73 views

finding the within-person SD from a null model lme output

I just wanted to make sure I'm interpreting my lme() output correctly. I've set up a null model because I was told I could find the within-persons SD this way (...
alessothegreat's user avatar
1 vote
0 answers
42 views

Which model with multiple samples by subject and one response by subject? glme?

I have a few variables (continuous or ordinal) and multiple samples from the same subjects (n=10 for now). The number of samples by subject varies from 1 to 50. Samples are not repeated measure s in ...
Kirilovsky Amos's user avatar
1 vote
0 answers
54 views

Why does independence matter in Statistics & Why does a MLM change Fixed Effect Coefficients?

I've been trying to get a better grasp of statistics lately, and have been wondering why exactly independent observations matter when building a model? This is a broad question, but I'm curious about ...
dylanjm's user avatar
  • 384
2 votes
2 answers
558 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/...
Acer acer's user avatar
4 votes
1 answer
1k views

Difference between multilevel logistic regression and a logistic regression with lower levels aggregated

I have a question about the differences between two forms of logistic regression. Let's say that I have data that is collected with some nesting. For concreteness, we'll say that I've got data across ...
triddle's user avatar
  • 480
5 votes
1 answer
2k views

What is the difference between mixed-effects modelling in the RStan and lme4 packages?

I've recently begun running some multilevel/hierarchical models. Initially I was using rstan/rstanarm, but then switched to the lme4 package. Is the difference between these two packages only in the ...
Phantom Photon's user avatar
2 votes
0 answers
2k views

Fitting GLM (family = inverse.gaussian) on simulated AR(1)-data

I am encountering quite an annoying and to me incomprehensible problem, and I hope some of you can help me. I am trying to estimate the autoregression (influence of previous measurements of variable X ...
Jeroen Mulder's user avatar
1 vote
1 answer
38 views

Hierarchical models - empty groups and missing groups

In hierarchical models (HLMs, Hierarchical Bayesian models, etc.) parameters are estimated for each group: ...
oLas's user avatar
  • 131
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
1 vote
0 answers
87 views

Should I centre or standardise variables in a linear mixed model analysis?

My study is looking at skin lesions in pigs. I have 2 partially cross-classified random factors (weaning pen and finishing pen) and several predictor variables. I have centred pig weights by pen ...
Grace Carroll's user avatar
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
2 votes
1 answer
99 views

Does adding a grouping variable to a model help or hamper?

Imagine I have a dataset of people where I can find the city and country they live in. The data is such that, given the city, there is only one possible country. For example, given Madrid as a city, ...
dukebody's user avatar
  • 141
5 votes
0 answers
813 views

How does GEE (Generalized Estimating Equation) treat different cluster size?

I have a population of 200,000+ patients and their hospital visit information. I'm trying to see if having a certain disease would have an effect on whether they will have readmission or not (this is ...
Ashley Zhou's user avatar
3 votes
2 answers
3k views

Difference between multilevel GLM and mixed linear models when the family is Gaussian and link function is Identity?

In Stata 13, there is now the new command "meglm" (multilevel generalized linear models) to analyse hierarchical models. My question is, what is the difference between the "meglm" with family of ...
Chay's user avatar
  • 73
2 votes
2 answers
150 views

Can I do a t-test to compare t-statistics?

I was trying to fit a 2-level "hierarchical model" all in one go, in MATLAB. But then realised it might be better to do the lower level first, then the higher level. Simply, I have 80 subjects, from ...
Sanjay Manohar's user avatar
0 votes
0 answers
363 views

Is my nested random-effect model non-hierarchical?

I have a problem with model structure because of the way factors are nested in a potentially non-hierarchical way. I'm not sure if I fully understand the issue but I can't find a way to specify the ...
Amorphia's user avatar
  • 997
7 votes
1 answer
237 views

Are GAMMs/GLM the best choice for calculating number of germs on hands?

We would like your opinion on whether GAMMs are a good option and how best to go about implementing for the following: During a period of patient care, a nurse will accrue $Y$ colonies of bacteria on ...
HCAI's user avatar
  • 789
2 votes
0 answers
685 views

Comparing Beta weights in HLM? [closed]

I want to compare the strengths of different predictors (all at Level 1) using HLM and am not sure what statistical test would be appropriate. More specifically, if I have 3 predictors at level 1 ...
Roanne's user avatar
  • 21