"Mixed effects models" refers to models that have both fixed effects and random effects. They are used to model longitudinal data or data that are clustered & thus do not have independent errors.

learn more… | top users | synonyms

0
votes
0answers
18 views

Random slope and random intercept correlation at every level of X

Lets say individuals are nested within each ID and I am trying to a predict level 1 outcome Y from a level 1 predictor X1 or X2 with random slopes and intercepts. X1 and X2 are equivalent to each ...
1
vote
2answers
36 views

Need help with nested random/mixed effect model specification

I am a newbie in meta-analysis and I need your opinion on the design of my random-effect model. I have conducted an experiment on the performance of a provider who has around 30-40 data centres. I ...
2
votes
1answer
38 views

calculating adjusted means from lmer

How can I calculate adjusted means for a regression model with fixed and random effects? I'd like to calculate the adjusted means for a lme regression with this formula ...
0
votes
0answers
13 views

Mixed Effects Poisson on error data

I have data from a 2 x 2 repeated measures factorial experiment. There are 20 participants who each completed 24 trials for each one of the following factor combinations. 1) A1 x B1 2) A1 x B2 3) ...
0
votes
2answers
58 views

Mixed effects model: model fitting vs conceptual sense

I have a data from a 2 (load) x 2 (comp) x 2 (sal) full factorial repeated measures experiment and I'm trying to fit a linear mixed effects model to it. Here is a sample of the data: ...
2
votes
0answers
21 views

Understanding variance estimation by restricted maximum likelihood (REML)

I'm reading Doug Bates' theory paper on R's lme4 package to better understand the nitty-gritty of mixed models, and came across an intriguing result that I'd like to understand better, about using ...
3
votes
1answer
98 views

Mixed effects model hypothesis testing

I ran a 2 x 2 x 2 full factorial repeated measures experiment where 20 participants were exposed 30 times to all combinations of the factors A, B and C in random order. This is a standard procedure in ...
1
vote
1answer
44 views

“Pairwise not statistically different” leads to “overall statistically different”?

I have a linear mixed-effect model $$ y=\beta_0+\beta_1x_1+\beta_2x_2+\beta_3x_3+Zb+e, $$ where $[x_1\ x_2\ x_3]$ represents the fixed effects, and $Z$ represents the random effects. Now, I test the ...
0
votes
0answers
10 views

Testing outlier influence on random effects in linear mixed effects models

I have been reading a little bit about diagnostics for linear mixed effects models and have started wondering about how outliers may influence random effects in addition to fixed effects. The paper on ...
0
votes
1answer
30 views

Repeated measures through time using mixed effects in R, plus post hoc tests

I have been trying to figure out how to do a fairly basic repeated measures analysis using linear mixed effects in R, and then analysing it using post-hoc tests. The problem is that I'm not sure ...
3
votes
2answers
48 views

What's an example of a situation in which it makes sense to assume random slopes but a fixed intercept?

I'm referring to multilevel modelling. Field (2013) writes: It’s worth noting that it would be unusual in reality to assume random slopes without also assuming random intercepts, because ...
2
votes
0answers
9 views

GEE Logistic Model with Subject Specific Predictions?

I have fit a marginal logistic model or GEE Logistic Regression model using SAS' proc genmod to obtain estimated parameters associated with mortality (death). Using SAS, I am able to obtain ...
1
vote
0answers
23 views

Rule of thumb for sample size for mixed-effects logistic regression analysis?

Is there a simple way of calculating the minimum number of participants (and/or items) needed for a mixed-effects logistic regression analysis? In particular, what should I do if I don't know what to ...
0
votes
0answers
16 views

shall I add all correlated variables in a mixed effect model?

If I have a mixed effect model case with various predictor variables. If some of the variables are correlated; is it better to add both correlated variables to the model? or shall i take out one of ...
1
vote
1answer
26 views

I'm having trouble fitting a general (not generalized…) linear mixed-effect model using the lme4 package. Can anybody help?

I need to fit a linear mixed model in the "Laird and Ware" framework. This type of model is usually specified by (as you may know): $\mathbf{y}_i = X_i \beta + Z_i \mathbf{b}_i + \mathbf{\epsilon}_i ...
0
votes
0answers
13 views

Intra-individual covariance matrix in lme4

I wonder, why do not need to specify the structure of the variance covariance matrix and the lmer function library lme4, since using the lm function library nlme this is possible. Thank you.
0
votes
1answer
24 views

correlated variables as fixed effect in mixed effect models

I am interested to know whether the count of beetles depends more on precipitation or in minimum temperature in winter. I currently model as fixed effects: altitude (correlated with temperature) ...
0
votes
0answers
23 views

Should I include weights in LME?

I have two case studies where I am looking at the influence of a trait (trait A) on mortality (m) of trees and seedlings. Following your comments on ...
0
votes
0answers
6 views

How to analyse interbirth interval data with 0s

OK.. So to give a bit of context, this is what my data looks like: My question is regarding the last variable column (IBI). This records the interbirth interval in days between each birth (the date ...
0
votes
1answer
33 views

Mixed models and longitudinal studies: Is it ok to specify a random slope with time as a categorical?

My model is currently setup as follows either with just random intercepts: ...
0
votes
0answers
25 views

Variance component model for longitudinal data

I have a dataset with fixed and random effects, sampled over time (body phenotypes under fixed stimulations). Generally speaking, I'd like to construct a variance component/ partitioning model to ...
0
votes
2answers
80 views

When the dependent variable and random effects 'overlap' in mixed effects models

I have added a new example here for clarity, see original question below Eg. I have 10 schools in 5 countries, ten students from each school is sampled. Prediction variables: student test marks for ...
0
votes
1answer
53 views

Post-hoc testing in multcomp::glht for mixed-effects models (lme4) with interactions

I am new to CrossValidated, so if there is a better way for me to format or ask my question, please feel free to comment. I am performing post-hoc tests on a linear mixed-effects model in R (package ...
1
vote
0answers
75 views

95% CI in nonlinear mixed-effect model {lme4} with two or more crossed random effects

I have fisheries-independent data and am interesting in estimating maturity patterns across 50 lakes that are sampled (with bias) by 4 types of gear-collections. The sampling pattern is very ...
3
votes
1answer
42 views

Nested linear mixed-effects model

I have 9 sites. Within each site, plant life was sampled to represent 70% of the basal area. Of the sampled plants, I know the corresponding family, genus, and species. For this project, I extracted ...
0
votes
0answers
46 views

Negative binomial mixed effect model for repeated measures with R - prediction and plotting

I have a dataset to analyze in which a response was recorded at the ends of months 1,3,4,5,6 in 187 patients. All patients had the responses recorded in each week, and all patients started a treatment ...
0
votes
1answer
15 views

Nesting v. interaction in LMM

I have a continuous response variable, a continuous predictor (P1) and a variable (elevation, P2) that could be treated either as continuous or categorical (I guess?). I also have an ID as the random ...
9
votes
1answer
130 views

Mixed-effect model design with a sampling variable

I am trying to specify a formula for a linear mixed effect model (with lme4) for my experimental design, but I'm not sure I'm doing it right. The design: basically ...
3
votes
1answer
49 views

Hypothesis testing: If not a p-value in mixed effect models, then what?

I've been working on a messy, repeated measures data set of endocrine data looking at a small group of variables (after eliminating several uninteresting contenders in exploratory data analysis), each ...
1
vote
2answers
63 views

Large differences between raw (plotted) data and least-squares means from mixed model

I’m analysing data with mixed-models (using the afex package which I believe is based on lme4) from an experiment that had a ...
1
vote
0answers
58 views

How to model time-series data with nested random and fixed effects?

I'm analysing PAM fluorescence data from an experimental set-up that I duplicated from an earlier experiment with a missing control. That's why I haven't given the statistics of the experiment much ...
0
votes
1answer
24 views

Post Hoc Analysis in Mixed linear models

I tested whether different version-styles of a loading screen (hourglass vs. progress bar) in different progression patterns (linear, accelerate, decelerate, irregular, binary) affect time estimations ...
0
votes
0answers
93 views

Pooled OLS, fixed, random or mixed effects?

I am analysing a simple balanced panel data with the following variables: ...
4
votes
0answers
124 views

R lmerTest and Tests of Multiple Random Effects

I'm curious about how lmerTest package in R, specifically the "rand" function, handles tests of random effects. Consider the example from the lmerTest pdf on CRAN that uses the built in "carrots" ...
4
votes
1answer
88 views

Examining trends with interactions and with stratification - obtaining discordant results

I'm examining the effect of income (categorized into quintiles) on a response variable during different years (from 2003 to 2014). I adjust for some other covariates and have repeated measurements on ...
1
vote
0answers
37 views

Treatment of mixed effect models for Box-Cox transformation

To analyse the Box-Cox transformation in a mixed effect model, no simple transformation/ code in R exists. So which of the following approaches would be valid ways and why? 1) Take a random sample ...
1
vote
0answers
44 views

How do I fit a linear mixed model in R with autocorrelation, when the effect of time is of no interest?

I am attempting to fit a linear mixed model with the lme function using R. My data involve repeated measures, but the effect of time is not of interest to me, so I don't want to include it as a fixed ...
0
votes
1answer
36 views

Material difference between Mixed Effects Model and normal Linear Model

I have a question about normal linear models vs mixed models. Say I'm predicting prices for certain products, and I know two things: store and brand: In a linear model (lm), this would be: ...
0
votes
0answers
26 views

Is there a more efficient way to partition my data for use in lme4?

I'm currently using lme4 to fit the following model: Model = lmer(CA ~ P + T + S + (1 | Study), Data) P and T refer to pressure and temperature, and there is an ...
3
votes
0answers
45 views

Study on both hands of patients, mixed effects?

We want to test the correlation of a certain surgical procedure on the hand (carpal tunnel) and the development of trigger digit. We have both hands of the patients, some hands underwent surgery, ...
1
vote
0answers
39 views

Striping in residuals for linear mixed effect models

I am looking at the effects role has an opportunities to collaborate between groups in a social network. At a basic level the data are modeled as: relRatio~role ...
0
votes
0answers
56 views

What does the dfbeta mean for an lmer regression?

According to the documentation: DFBETAS (standardized difference of the beta) is a measure that standardizes the absolute difference in parameter estimates between a (mixed effects) regression ...
1
vote
0answers
28 views

Heavy-tailed errors in mixed-effects model

I'm relatively new to statistical modelling and `R', so please let me know If I should provide any further information/plots. I did originally post this question here, but unfortunately have not ...
0
votes
0answers
31 views

In the optimal model, do I need to change 'REML=FALSE' to 'REML=TRUE'?

I did the model comparison using these three models: ...
1
vote
2answers
44 views

How do I identify a particular residual from a mixed-effects model in R?

Here's a plot of my residuals from a mixed-effects model in R (using lme4). There's one 'outlying' residual with a value of around 35 (index circa 90) that seems anomalous. I don't know if it has ...
1
vote
1answer
32 views

Random variable in mixed-effect model (ecological studie)

I'm beginner with the mixed-effects model, so I already apologize if my question is a bit naive. My problem is the following : I sample each time 30 plants in 6 populations on 9 mountains. So I ...
0
votes
1answer
104 views

Should I include this fixed effect? lme4 likelihood ratio test and lmerTest anova disagree

I have a mixed-effects model with two fixed effects and one random effect (group membership) estimated using lme4. log_dv ~ iv1 + iv2 + (1 | group) I want to ...
1
vote
1answer
31 views

power for mixed-effects model

I wonder if there is a simple way of calculating an achieved power for a mixed-effects model. The fixed effects are the intercept and a slope. The random effect is for the intercept at the two levels ...
0
votes
0answers
21 views

Which is the difference between conventional 2-way repeated measures ANOVA and mixed effect ANOVA?

Assuming I have two within-subjects factors (Xw1 and Xw2) for my experimental design I can therefore perform two way repeated measures ANOVA using the conventional procedure in R ...
5
votes
1answer
71 views

Real motivation for using mixed effect models, and when to use them and when not to

My question might sound naïve, but despite my internet search, I wasn't able to find a satisfactory answer. I've been introduced to linear regression, linear fixed effect and linear mixed effect ...