Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 222364

Mixed (aka multilevel or hierarchical) models are linear models that include both fixed effects and random effects. They are used to model longitudinal or nested data.

0 votes

How to combine random effect and nested random effect with lme

I'm not sure how to do it in package NLME, but with LME4 you could do it with: lmer(y ~ t + x + (1 + T|SUBJECT:SCHOOL), REML = FALSE)
Craig K. Van Pay's user avatar
0 votes

Its my model a Mixed model?

Compute the Intraclass Correlation Coefficient of your data by specifying person, or model, if it is non-zero, you likely have a mixed model. This can be done by "hand" or with many different packages …
Craig K. Van Pay's user avatar
4 votes
1 answer
980 views

Centering in longitudinal linear mixed modeling - center by participant mean, timepoint mean...

EDIT: I was incorrectly looking to center my outcome variables. Only center predictors, and decide on group mean or grand mean centering by how you want to interpret your intercept. I have 150 partic …
Craig K. Van Pay's user avatar
0 votes

Dealing with heteroscedasticity and non-normality in a mixed model

You could attempt to do a robust linear mixed model using package robustlmm. https://cran.r-project.org/web/packages/robustlmm/index.html Or you can try it in lme4 with glmer() based on the appropri …
Craig K. Van Pay's user avatar
4 votes

Accounting for grouped random effects in lme4

If you believe the different categories vary in terms of their measurement and you want to test that, you need to model the category as a random intercept with (1|category). However, I think we need …
Craig K. Van Pay's user avatar
3 votes
1 answer
280 views

Doing a multilevel model using lmer with participants nested in time - should time be a fact...

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 …
Craig K. Van Pay's user avatar