Questions tagged [multilevel-analysis]

Statistical methods appropriate for the analysis of data sets comprising several levels of hierarchy of units of analysis (e.g., students nested in classes nested in schools; observations nested in patients nested in hospitals). If you can refer to more specific models like mixed-model or glmm, please do so.

Overview

"Multilevel analysis is a general term referring to statistical methods appropriate for the analysis of data sets comprising several types of unit of analysis. The levels in the multilevel analysis are another name for the different types of unit of analysis. Each level of analysis will correspond to a population, so that multilevel studies will refer to several populations..."

-T.A.B. Snijders, Multilevel Analysis, p. 673-677 in M. Lewis-Beck, A.E. Bryman, and T.F. Liao (eds.), The SAGE Encyclopedia of Social Science Research Methods (Volume II). Sage, 2003.

Related tags

  • for linear multilevel models, or HLMs
  • for models with random intercepts
  • for models with random intercepts and slopes
  • for generalized linear mixed models (binary, ordinal, count response)
  • and for R implementations
  • for Stata implementation
  • for Bayesian models comprising several levels of hierarchy of priors and hyperpriors

Please use these tags to make your question more specific and easier to find.

164 questions
0
votes
0 answers

Alternative solutions to multilevel modelling due to level 2 and 3 not having enough clusters

I have been running some multilevel models on my data but have now been told my clusters are too small and I need to consider taking out two of the levels and add them in as covaraites (dummy variables).I gave this a shot and it didn't work. To…
0
votes
0 answers

Hierarchical Linear Mixture Model

I have implemented a stan hierarchical model with level 1 within groups to be a linear model and level 2 within subjects Gaussian mixture model. It means the slope obtained from level 1 is used by level model GMM to cluster. When I run the model it…
0
votes
0 answers

Imputing binary missing data with hmi and mice -- Error: C stack usage 7969776 is too close to the limit

I'm running HMI on two level data (students in courses) with missing data at the student level. The code throws the following error (Error: C stack usage 7969776 is too close to the limit) when I include a binary value (gender) with missing…
0
votes
1 answer

Why are the coinfidence intervals predicted by arm::sim vs merTools::predictInterval different?

I'm comparing the confidence-interval (CI)s produced by arm's sim() function and predictInterval() from merTools. I'm using the sleepstudy dataset from lme4 as an example. I am expecting the same result from the two methods but that is not the…
Bibe
  • 41
  • 5
0
votes
1 answer

lme4 translate formula to code in 3-level model

I have been provided with the following formulas and need to find the correct lme4 code. I find this rather challenging and could not find a good example I could follow...perhaps you can help? I have two patient groups: group1 and group2. Both…
0
votes
1 answer

error message with R2MLwin null random model

I get an error message when fitting a full random two-level null model with the package R2MLwiN. My dataframe is a subset of a Multiple Indicator Cluster Survey developed by UNICEF for Mozambique. My response variable is agem.18 a binary ("Yes",…
Manolo
  • 73
  • 8
0
votes
0 answers

How do I find out which observations of my dataset have been used for my mlm in R (nlme)?

I have longitudinal data and specified 3 multilevel models for different outcomes with nlme in R. 'model <- lme (...)' They all are based on the same dataset. Now, 'summary(model)' shows me that the observations used for my final three models…
Lynn
  • 13
  • 3
0
votes
1 answer

How to decide when and how to include covariates in a linear mixed-effects model in lme4

I am running a linear mixed-effects model in R, and I'm not sure how to include a covariate of no interest in the model, or even how to decide if I should do that. I have two within-subject variables, let's call them A and B with two levels each,…
MGy
  • 25
  • 1
  • 7
0
votes
0 answers

Multilevel Model - 2 Levels

I got my data from a questionanire, where I had group1 30 individuals vs group2 30 individuals. They answered on 6 questions (from those 6 questions, I got weights on advice (my DV) that range from 0 to 1 (continuous data)). To analyze it, I though…
0
votes
1 answer

R + Multilevel Logistic Regression + Group Fixed Effects

In Stata, I know that if I use the following command, I can get the logits for each possible combination between my dependent variable (thkbins) and my two predictor variables (cc & tv): melogit thkbins cc#tv || school:, Is there a way to produce…
B. Norris
  • 57
  • 6
0
votes
0 answers

upload a multi level rows and columns excel table into a pandas dataframe

I have a multi column/row spreadsheet. The first column level is = date1, date2, date3. The second column level is sex: male, female. Hence the total is equal to 6 columns date1, date2, date3 M, F M, F M, F now, the table has also has…
Andrea
  • 113
  • 1
  • 4
  • 10
0
votes
1 answer

Simulation "zelig style" for GLMER multilevel in r

I run a logistic mixed-effects regression with r. The regression is somehow like this: glmer ( Y~ X1 + X2 + X1:X2 + (1 | country), data = hdp, family = binomial) Now, with the fixed effects I would like to plot predicted probabilities of Y. I tried…
Ophelia
  • 55
  • 7
0
votes
0 answers

Plotting nested data - Multilevel regression with categorial predictors

I'm writing my master thesis and I'm stuck with the complexity of my data. Therefore I'd like to plot my data to see what's in there. My dataframe looks like that: I've 333 perceivers (PID) who rated 60 target photos (TID) each, resulting in 19980…
Josh
  • 15
  • 6
-1
votes
1 answer

R multilevel mediation with uneven sample sizes in Y and M models

I'm trying to run a multilevel mediation analysis in R. I get the error: Error in mediate(model.M, model.Y, treat = "treat", mediator = mediator, data=data): number of observations do not match between mediator and outcome models Models M and Y…
DRFeinberg
  • 77
  • 1
  • 6
1 2 3
10
11