Search Results
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 |
lme4 and nlme are R packages used for fitting linear, generalized linear and nonlinear mixed effects models. For general questions about mixed models use [mixed-model] tag.
1
vote
Accepted
Is it similar to but trt*period in a model as to compare each treatment to each period in a ...
It is not entirely clear what you mean by "extracting treatment A," but I'm assuming that you are somehow limiting the data to only include data points from those who got treatment A.
Personally I w …
2
votes
Accepted
In R, "Error: number of levels of each grouping factor must be < number of observations"
Welcome to the site, J.E. Without looking at your data, I am a little unclear about the trial variable. Given EdM's comment and a closer reading of your post, I want to make sure that I understand thi …
0
votes
lmer for simple unpooled statistics
"Unpooled" typically refers to a "fixed effects" model. It means that each category is given it's own unique intercept. These models are typically estimated using lm, not lmer, the latter estimating " …
4
votes
Accepted
lme4: what is gained by scaling variables?
You mention that you cannot properly interpret the coefficient of a standardized variable, and I would disagree. Imagine you have a variable that is scaled from 0 to 100. A 1-unit difference in such a …
2
votes
Accepted
When you have a variable that can be both fixed and random, is there a right way to define i...
This is an interesting design!
One thing before getting to your question. You have diagnosis as both a fixed and then a nested random intercept. That does not make a lot of sense. My initial thought …
1
vote
Cross over design 2x2 with one baseline
Some thoughts based on your research questions...
Is there a difference between the responses at Context A, and Context
B in each group?
The lmer model you posted addresses this through the Co …
2
votes
Accepted
Mixed model with random slope and Intercept syntax?
Some thoughts on each of your assumptions:
I want to assume that measurements that are further apart in time are less correlated than measurements that closer (random slope).
In theory, t …
1
vote
Is there a way to ask for "what changed between experiments"?
I believe that part of what you want to do is test the interaction between cohort and condition. This is most obvious in your statement about wanting to know about:
what changed between between $ …
0
votes
How to interpret mixed models?
The regression model is indeed controlling for, or perhaps more appropriately, adjusting for age and gender in reporting the association between test and value, status and value, and the combination o …
1
vote
Accepted
Handling cumulative exposure variables in mixed-effects logistic regression (MELR) models
Welcome to the site, Ashirwad. You can code your predictor variables however you want in a MELR. The bigger question is about whether the way you have coded it makes sense given your research question …
1
vote
Accepted
Help with setup of a hierarchical linear model (lmer) in R, selection of fixed and random ef...
Welcome to the site, roman. I would suggest filtering out the individuals who were not in study #3. Assuming that study is coded 1, 2, or 3, I would first narrow down your data to just those subjects …
0
votes
Multilevel logistic panel regression with glmer in R
Welcome to the site anwyy! Your model looks like it will give you exactly what you want. The big question is whether it makes sense to have a random intercept with just four levels. This is something …
0
votes
Accepted
Model for longitunal data with different interactions
Welcome to the site! You seem to have a pretty good handle on things. Let me try to address your two questions.
1) The effects I'm looking at might also lead to a more accelerated
decline of out …
1
vote
Accepted
individual vs group characteristics in mixed models
I am not sure how lme4 internally recognizes and deals with group predictor variables, but the logic of it is exactly what you pointed out. Individual variables vary within groups whereas group variab …
0
votes
multilevel modeling (lmer)
Your intuition is correct, maddiek314. In linear mixed models such as those fit by lme4, the outcome must be at the lowest level of the data hierarchy (typically occasion in longitudinal models or ind …