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 13038

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.

2 votes
0 answers
696 views

Overfitting in GLMM

I have fit a mixed model with lmer() and am left with 4 significant interaction terms. There were found by removing the interaction term and comparing with the full model using anova(fm1, fm2). I ha …
Jonathan Bone's user avatar
5 votes
1 answer
4k views

Standard Deviation of Random effect is 0?

I have a model with two random effects > lmer(TotalPayoff~Type+Game+PgvnD*Asym+(1|Subject)+(1|Pairing),REML=FALSE,data=table)- >m1 each pairing contains 2 subjects and each Subject is in 2 diff …
Jonathan Bone's user avatar
2 votes
1 answer
2k views

Fixed effects have df=0 and chi-sq=0 when tested using anova()

I have a made a linear mixed model using lmer(). I began with a maximal model containing 6 terms and all two-way interactions (15 total), I also have a random effect of subject ID. Of these terms, …
Jonathan Bone's user avatar
3 votes
1 answer
7k views

Proper use of weights argument in linear mixed model [lme()]?

After attempting to produce a linear mixed model I was left with a great deal of heterogeneity. lme1 <- lme(Average.payoff ~ Game + Type + Others.Type + Game:Type + Game:Others.Type + Type:Others. …
Jonathan Bone's user avatar
4 votes
1 answer
21k views

If using Glmm with Gamma distribution do i need to transform my data to be between 0 and 1?

When creating a Glmm with Gamma distribution do I need to transform my response variable data to be between 0 and 1?
Jonathan Bone's user avatar
3 votes
1 answer
3k views

Should I keep or remove random effects?

After attempting to produce a linear mixed model, I was left with a great deal of heterogeneity. lme1 <- lme(Average.payoff ~ Game + Type + Others.Type + Game:Type + Game:Others.Type + Type:Others …
Jonathan Bone's user avatar
9 votes
1 answer
986 views

What to do with heterogeneity of variance when spread decreases with larger fitted values

I am trying to produce a linear mixed model the R code is as follows. lme(Average.payoff~Game+Type+Others.Type+Game:Type+Game:Others.Type+Type:Others.Type,random=~1|Subjects,method="REML", data=Su …
Jonathan Bone's user avatar
3 votes
1 answer
5k views

Random-effects probit model

I am currently using a mixed binomial model with the following specification in a paper I recently submitted (using lme4): m1<-glmer(y~X1*X2*X3+(1|Subject.ID),data=data,family="binomial") X1 and X2 …
Jonathan Bone's user avatar
3 votes
0 answers
725 views

Mixed logistic model with complete separation [duplicate]

I want am trying to produce a mixed logistic model but certain explanatory variables suffer from complete separation. I am aware that I need to either use exact logistic regression or a firth correcti …
Jonathan Bone's user avatar
8 votes
1 answer
61k views

Correct interpretation of Lmer output

I have produced the following model: >lmer(TotalPayoff~PgvnD*Type+Type*Asym+PgvnD*Asym+Game*Type+Game*PgvnD+Game*Asym+ (1|Subject)+(1|Pairing),REML=FALSE,data=table1)->m1 PgvnD=A …
Jonathan Bone's user avatar
1 vote
1 answer
492 views

Missing values in GLMM

I am creating a GLMM based on a experiment where each subject has 2 repeats. In some instances though there is only data for one of a given subjects repeats for most there is data for both. Can I stil …
Jonathan Bone's user avatar
8 votes
3 answers
4k views

regression with non-independent data

I will be performing regression on subjects total scores from 2 player games (prisoners dilemma) that they will be playing. I am aware that including both players score from a game will cause problems …
Jonathan Bone's user avatar
30 votes
6 answers
21k views

Beta regression of proportion data including 1 and 0

I am trying to produce a model for which I have a response variable which is a proportion between 0 and 1, this includes quite a few 0s and 1s but also many values in between. I am thinking about atte …
Jonathan Bone's user avatar
5 votes
3 answers
1k views

Troublesome residual plot from linear mixed model

I have fitted the following linear mixed model based on the results of an economic game: lmer(TotalScore~perOOgivenP+Game+(1|Subject),REML=T,data=mdl1table)->m1 TotalScore is a integer. perOOgivenP …
Jonathan Bone's user avatar