Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [multilevel-analysis]

Statistical analysis of datasets comprising several levels of hierarchy (e.g., students nested in classes nested in schools). For questions about mixed models use [mixed-model] tag. For nested random effects, use [nested-data].

2
votes
0answers
14 views

three-level meta-analysis with dependency on two levels

I am conducting a meta-analysis on the effect of concientiousness on scholastic achievement in high-school students. Currently, I am struggling to find the right statistical analysis for my data ...
2
votes
1answer
23 views

Doing a multilevel model using lmer with participants nested in time - should time be a factor or not?

I am using function lmer() within package "lme4". Repeated-measures design with 4 time points, data is in long format. The time points are equidistant apart. Should I treat that variable as an integer,...
0
votes
0answers
43 views

How to Interpret the result of generalized linear mixed model?

I ran a generalized linear mixed model using lmer in R, and I'm struggling how to interpret the result. The response variable is a result of 25 consecutive binary choices. The point where I'm stuck is:...
2
votes
2answers
94 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/...
0
votes
0answers
6 views

multilevel discrete competing risk

Currently, i'm working my dissertation to build up the joint association in between multilevel discrete time competing risk response(Y_1tij^(r); r=event status) and another multilevel continuous ...
0
votes
0answers
19 views

What kind of statistical design would you do given the sampling distribution (in picture)?

My thesis mentor gave me samples to work with. Explanation of sampling pattern: There are three samples per field (plot) to which are conjoined three samples from an adjacent plot. The plot differ ...
0
votes
0answers
3 views

Simulate discrete time competing risk data for clustered data

How can we simulate discrete time competing risk data for modelling multilevel discrete time competing risk( multilevel multinomial logit model)
4
votes
1answer
45 views

What is a two-stage regression, as a prelude to multilevel modeling, concretely?

I would like to fit some multilevel models to my data. In several places Dr. Gelman has suggested that one can fit a two-stage regression as a prelude to a multilevel model, to see if a more flexible ...
0
votes
1answer
20 views

Unbalanced Longitudinal Multilevel Model Power Analysis

I am trying to conduct a power analysis on a multilevel longitudinal model (pre-existing household panel dataset) and am having trouble figuring out how to do it (or if it is even needed in the first ...
0
votes
0answers
6 views

clustered multi-reader multi-case/modality ROC analysis in R

My problem I am looking for an R approach to: do a ROC-Analysis of (clustered (i.e. several observations per case, e.g. prostate segments) / multi reader / multi case/motality) rating (score 1-5) ...
0
votes
1answer
23 views

icc in hierarchical models as variance partition coefficient

When I learned multilevel modeling, one of the first things we were required to do is to run an empty model with the dependent variable and the clustering IDs. In my understanding, the ICC of such a ...
0
votes
0answers
15 views

Excellent fit, zero convergence hierarchical dirichlet model in JAGS

I am fitting a hierarchical dirichlet model to some data in JAGS. My samples (referred to as cores in the code) are observations of the relative abundance of 3 ...
2
votes
1answer
33 views

How can I reproduce the gllamm() Stata function in R?

I'm currently working in a project, where I replicate a project that has been conducted with Stata. I, however, work with R. The task is to estimate a multi level logit model. In Stata, the project ...
0
votes
0answers
10 views

What are level-2 covariance parameters within Iterative Generalised Least Squares Models to estimate multilevel models?

I am referring to Goldstein & Rasbash (1992): Efficient computational procedures for the estimation of parameters in multilevel models based on iterative generalised least squares. Computational ...
0
votes
0answers
5 views

Any kind of analysis for multilevel data with correlational hypotheses?

I have collected some complex data and I have some questions on the best way to analyze them in order to answer my research questions. I have a sample of 165 preadolescents. They all come from the ...
0
votes
0answers
15 views

Proportional Hazards Assumption for Frailties in Multilevel Cox Model

I'm investigating patients' mortality after a trauma based on country-wide data. In particular, I want to know if there is variation between regions within the country. Therefore, I want to employ a ...
0
votes
0answers
7 views

Sampling weight

I have a dataset with stratified sampling and there is a variable called weight for each observation. I think it's the sampling weight and can I use linear model for this dataset instead go for a ...
1
vote
1answer
28 views

Notation for nested multilevel model

I am fitting the following logit model in lme4 (R): dummy ~ ind_var1 + state_var2 + country_var3 + (1 | country/state) This specifies varying intercepts for ...
0
votes
0answers
17 views

Line chart indicates high variation in random slopes, but this isn't reflected in model results

I have a daily diary dataset and am interested in assessing whether there is evidence of randomly varying slopes between a daily predictor (exercise) and a daily dependent variable (happiness). ...
0
votes
1answer
28 views

Proportional odds assumption for multilevel data

I'm running model in which I analyze salary of recent graduates. People graduated from different majors and in different years. The dependent variable (salary) is measured using intervals, e.g., "less ...
0
votes
0answers
17 views

How should I meta-analyze a dataset with three cluster levels where I don't know the covariance matrix

I'm doing a meta-analysis on a data set where I have data from a number of different studies. Each study can have several samples, and within each sample the participants can have performed several ...
2
votes
1answer
41 views

Specifying multilevel model structure when random effects exhaust the population

I have been working with a dataset featuring observations at the county level for about 1300 of the ~3100 or so counties of the United States. These 1300 counties are drawn from every state in the ...
0
votes
0answers
16 views

What method would you use to identify risk factors at the individual level when you only have outcome data at the household level?

Say you wanted to identify the net effects of individual-level variables associated with smoking. You have a simple dataset of single-person household (i.e. individuals living alone) and their traits ...
1
vote
1answer
25 views

a simple question about mixed effects and interactions

Suppose I have the following model written in lme4-like formula syntax: Outcome = year + categorical_variable + year : categorical variable + (year | group), ...
0
votes
0answers
19 views

Modeling multilevel data with lme4

I want to find out if people who use learning strategies that fit a learning problem are more satisfied regarding their learning than people who use unfitting strategies; And also if there are ...
1
vote
2answers
70 views

Modeling within group correlation - random effects, fixed effects, clustered standard errors?

I know this kind of question has been asked before, but I can't find anything that clearly elucidates the issue. What is the 'right' way to model the follow situation: Let's say I pair two people up ...
1
vote
0answers
25 views

Specifying a slopes-as-outcomes model in R

I have read some of the other threads and wanted to check my understanding of exactly what I am asking R to do. My code is: The slopes-as-outcomes multilevel model i wish to test is: Level 1: WPMSP =...
1
vote
2answers
28 views

power analysis for multilevel model with significant finding

I am working on a study where data collection is still in progress. I have done preliminary analysis with a multilevel model on a small number of people (n=19), and there is a statistically ...
2
votes
1answer
79 views

Best way to model repeated measure differences across groups

Let's say I have three groups, each consisting of two individuals. Each group answers questions together, and each member independently reports their confidence in their groups' answers. I want to ...
2
votes
1answer
24 views

How do I specify an outcome variable (y) as count data using a poisson regression in a multilevel model?

I have three variables with multilevel data: Level 1 DV: deviant behaviour Level 1 IV: negative affect Level 2 IV: consideration of others (personality trait) Here is my model: ...
2
votes
1answer
75 views

how do I plot interactions with continuous and categorical predictors in mixed models?

I'm very unsure how to plot mixed-level data consisting of a mixture of categorical and continuous predictors, so any help would be appreciated. This is the data ...
1
vote
0answers
35 views

plm vs lmer - differences in outputs?

I am looking to run a random-effects model to look at attainment of pupils who are nested within schools. The model specification includes pupil-level characteristics, school-level characteristics and ...
0
votes
1answer
31 views

Is it neccessary to test for serial correlation in a multi-level model

I am running a multi-level model looking at factors that explain attainment. There are pupil- and school-level predictors, and the school the pupil attends is modelled as a random effect. I have run ...
2
votes
1answer
71 views

GLMM optimiser test - optimx.L-BFGS-B doesn't converge, but the rest do

I am running GLMM using lme4 in R for the first time. I have a complex model (with three main effects and four interactions), as well as a random intercept of ...
1
vote
0answers
45 views

How to do classification in mixed effect models in python. My data is nested into groups with binary outcome

Lets say I have 10 sellers (S1-S10). Each seller has 7 buyers which are different for each seller (B1-B7 for S1, B11-B17 for S2 and so on). Each Seller buyer combination has a product category (P1, P2....
0
votes
1answer
29 views

Multilevel models - Which level should the random effects enter on?

I am currently studying the effect that a pollutant has on plant growth. The plants come from a few different regions, and it is assumed that plants from the same region share more in common than ...
2
votes
1answer
36 views

Repeated measures, multilevel regression or another type of analysis?

I'm doing an experiment for which I've distributed a survey. People were asked in this survey to rate the attractiveness of 5 other people. I provided four groups of pictures and 1 of those groups ...
0
votes
1answer
48 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 ...
0
votes
0answers
4 views

Allowing cluster-level residuals to covary in Proc Glimmix

I am modeling the probability of a child being retained in kindergarten based on individual and school-level factors. The model includes random intercepts and slopes, as follows: ...
0
votes
0answers
17 views

Comparing Demographics Of Observations Within Subgroups

I have a dataset of states with a variety of demographic characteristics of those states, as well as those states assigned to a geographic region (note that the first column is "fips", just that the ...
1
vote
0answers
16 views

Hierarchical modeling for infering people's beliefs

Usually, when I do hierarchical modeling, the problem is relatively simple. For instance, let us say I want to know the average weight of frogs in an area, and I collect data on frogs from different ...
1
vote
0answers
17 views

What is the appropriate analysis for this type of repeated measures multi-binary data?

There is a popular theory within psychology that certain emotions will trigger "prototypical" facial expressions defined by the simultaneous contraction of specific facial muscles. For example, if a ...
0
votes
0answers
21 views

Using lmer to model time series data in R

My data looks as follows: The level structure is as follows: Level 1: Problemtype (A-G) Level 2: Sessions (between 3 and 10) Level 3: Persons (100 overall, but 2 to 8 in each Group) Level 4: ...
0
votes
1answer
34 views

output of lmer function

I have a question regarding understanding of the output of lmer function under lme4 package in ...
0
votes
0answers
24 views

Determining autocorrelation within occupancy covariates in R

I am doing a study underpinned by an occupancy modelling framework in R using the unmarked package to investigate the influence of different anthropogenic ...
1
vote
1answer
87 views

Why is my manual calculation of the log-likelihood for a 3-level model different than what nlme provides?

In short: I want to manually calculate the log-likelihood of a 3-level multilevel/mixed/hierarchical model, but my result is different from what nlme gives. I don't ...
0
votes
0answers
14 views

Compare treatment effects across Levels of aggregation

Suppose I am running an experiment to see if a treatment changes the mean weight of a group of people. Note that I am specifically interested in the mean weight: if half the people get heavier, and ...
0
votes
0answers
28 views

Within-subject or within-group standardization in mixed models

I have read informally suggestions not to standardized within-groups in a mixed model. That is, for example, if my model is ...
3
votes
0answers
24 views

Is it okay to include the dependent variable as an input variable to the higher-level regression model, in a hierarchical / multi-level setup

Let's say I have a hierarchical dataset with student scores (for each student) nested within schools. While modelling for a varying intercept, would it be okay to include the average of student scores ...