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

Problems dividing multilevel data into folds for cross validation using the perry package

I am trying to assess the performance of a generlaized linear mixed model I have built using behavior and performance data from dairy cows. The data has a nested structure (cows within farms) which I have tried to reflect in the model. I would like…
ILo
  • 1
  • 1
0
votes
0 answers

How can I get the level 1 and 2 residual variances from a lmer model in R?

I am trying to fill out a results table for my masters thesis in psychology but have been unable to compute the values that I need. I have conducted a daily diary study with data nested in days (level 1) and person (level 2). My multilevel model…
Eva
  • 1
0
votes
0 answers

Cannot perform estimation via MHRM algorithm in mirt package

I am trying to estimate a mmultilevel multidimensional item response theory (MMIRT) model in R by using mirt package (Chalmers, R. Philip. "mirt: A multidimensional item response theory package for the R environment." Journal of statistical Software…
0
votes
1 answer

sjplot plot_model with own color palette

I apologize if this is a very basic question, but I'm having trouble defining colors when using plot_model in sjplot. As an example, I have run a simple multilevel regression model where 76 participants represent clusters. Each participant responded…
Sointu
  • 107
  • 3
0
votes
0 answers

Mediation Analysis Diary Study

I did a diary study. It was 5 days, 2 times a day (morning and afternoon). Morning measures I have: sleeping problems Afternoon measures I have: Emotions Incivility I want to test a mediation. First I want to teste the model with just the IV. But,…
0
votes
0 answers

Running IRT with correlated items and many missing values

I'm hoping to run an IRT analysis where I have a couple families of items, and each person has answered one question from each family. Are there R packages for doing something like this? I've looked at options like hIRT but this seems to only…
Matt
  • 126
  • 10
0
votes
0 answers

How to fix vector size discrepancy(?): lmeInfo::g_mlm function, between r_const and utils::combn(1:cor_q, 2) : n < m

Using this code block in fresh install of R, if (!require('readr')) install.packages('readr') data <- as.data.frame(readr::read_delim("/Users/{le me}/Desktop/{path}/Histology Data for R.csv", delim = ",")) DataGroupLabel <- "3groupAnova" subdata <-…
0
votes
0 answers

Get random effect intercept value for every level in statsmodels

I'm going through a tutorial on mixed-effects models in Python. I'm building a model where litter is the random effect. In the tutorial, the output contains the variance across the litter intercepts. However, in Bayesian hierarchical modeling, I'm…
matsuo_basho
  • 2,833
  • 8
  • 26
  • 47
0
votes
0 answers

How to get the Null Model for CLMM (multilevel modeling with ordinal variable)

I'm trying to make the null model for my multilevel model with ordinal variable. I have the model with my variables set up, but I can't get the null model to work. Here's what I'm trying: modelnullother <- clmm(outofpocket.fac ~ (1|state.fac), data…
Kasey
  • 1
0
votes
0 answers

Cannot calculate reliability for diary data

I did a diary study and people had to answer to 2 times a day for 5 days. They had to answer in the morning and in the afternoon, and the variables used in both assessments were different (for instance: in the morning I asked about sleeping problems…
0
votes
0 answers

Trend and Multilevel Model (intercept and slope and graph)

I am just a beginner to R and Statistics. Here are my questions: I attempted to solve Q1, but I am not sure whether it is correct. But for Q2, I attempted to try too, but I have no clue for that. Q1. What is the trend of CES-D score across four…
Jade
  • 1
0
votes
0 answers

R package for multilevel modelling with categorical variables and FIML to deal with missing data

I am trying to find a package in R that will allow me to run multilevel models with a mix of both categorical (independent variables; binary and ordinal data) and continuous data, and use FIML for estimations and deal with missing data. However,…
dek2888
  • 11
  • 2
0
votes
0 answers

Data Structure for Triadic APIM Using Multilevel Analysis (in R)

We are trying to run Triadic APIM growth curve models using multilevel modeling. We have cortisol (cort) measurements across 4 time points for families of mothers, fathers, and children. We want to run a three-intercept APIM growth curve model to…
0
votes
1 answer

Multilevel modeling for repeated measures data - time and lagged variables

I'm very new to multilevel modeling and doing data analysis for repeated measures. I am trying to figure out if my model is set up correctly using the nlme package and if it's set up correctly to answer the question I want to answer. I want to see…
Karen
  • 43
  • 5
0
votes
0 answers

Gradient Descent for Multi-Level / Mixed / Hierarchical Regression Model

How would gradient descent work in a multilevel regression setting? This is fairly clear to me in a standard linear regression formulation, but haven't been able to wrap my head around parameter updates in hierarchical models. In short, I'd like to…