Questions tagged [lmer]

Function of the lme4 package for running linear mixed-effects regressions.

Function of the package for running linear mixed-effects regressions.

88 questions
0
votes
1 answer

Error in random intercept and random slope model

I am using the lme4 package in R and trying to fit in a random slope and random intercept model. I would be really helpful if anyone can help me understanding this error when I run a random slope and random intercept model and what to do regarding…
user3013423
0
votes
1 answer

failure to get p-values for lmer using lmerTest

I have run the following model using lmerTest and using lme4: model2 = lmer(log(RT)~Group*A*B*C+(1|item)+(1+A+B+C|subject),data=dt) Using lmerTest I get the following error when typing the summary() command: > summary(model1) Error in…
stephanie
  • 1
  • 2
0
votes
1 answer

Colnames error after running Summary() in mixed model

R version 3.1.0 (2014-04-10) lmer package version 1.1-6 lmerTest package version 2.0-6 I am currently working with lmer and lmerTest for my analysis. Every time I add an effect to the random structure, I get the following error when running…
Nalerive
  • 113
  • 6
0
votes
1 answer

How to get rid of lmer warning message?

I have made some changes to the lmer. It works as it should but I could not get rid of the warning message that pops when I run the program. I have added the following options which allows the program run without stopping but with the warning…
0
votes
0 answers

Contrasts in lmer

I have specified a mixed effect linear model with lmer and I don't know how to specify the contrasts for it. In my data I have a Condition with two levels, while in each Condition I have 20-20 Players. In each condition I present 7 Scenarios which…
Pio
  • 4,044
  • 11
  • 46
  • 81
0
votes
1 answer

Obtaining Std Dev & t value in lmer() estimates

I'm trying to use lmer() to construct a linear mixed effects model, but the output I get simply looks like this > model <- lmer(elogit_ToTarget ~ (Age..vA..months. + EVT_GSV + DDNotAgeSensitive)*(OrthTime + OrthTime2) + + ( OrthTime…
0
votes
0 answers

Huge difference in R lmer output between R versions 2.15.2 and 3.0.1

Having just installed R version 3.0.1 on my Windows 7 machine to use package nlme, I've found a huge difference in the models fitted by the lme() function in package lme4. Note that these results also differ in that R 2.15.2 uses lme4 1.0-4, while R…
Eoin
  • 565
  • 3
  • 14
0
votes
1 answer

User-specified Z matrix in lme

I have been looking forever about how to do this in R and cannot find anything! Basically, I am wanting to shrink predictors using LMM. So I have a set of fixed effects, X, and I have a set of predictors, Z, that I want to put a random effect on so…
0
votes
1 answer

lmerTest and lmer: Error message

I have run lmerTest and lmer in R in the version 2013: > library(lmerTest) > data1.frame <- read.delim("colorness.txt", fileEncoding="UTF-16") > str(data1.frame) > lmer3 <- lmerTest::lmer(duration ~ (1|item) + (1+color|speaker) + group*color*sex,…
user3288202
  • 313
  • 1
  • 4
  • 14
0
votes
0 answers

How to find F and p-value in Linear Mixed models

I am still not very familiar with R and I would like to construct linear model of mixed effects using lmer function. We have 3 independent variables with 2 modalities each time: group (G3 and G5) frequency (LF and HF) conditions (NR and PH) and…
Ewa Karolina P
  • 11
  • 1
  • 2
  • 3
0
votes
0 answers

R lmer debugging: Error in [[<-.data.frame(*tmp*, i, value = integer(0)) : replacement has 0 rows, data has 117

I am able to use lmer on an older computer without this error, but the new version (downloaded yesterday) gives me this error message: Error in [[<-.data.frame(*tmp*, i, value = integer(0)) : replacement has 0 rows, data has 117 in response to this…
0
votes
1 answer

Removing Rows in R Has Distorted the Data Set

I have removed certain rows from my database using the following code: df2 <- df1[!(df1$variable==1), ] This was a dummy variable, and the rows that had the value of 1 for that particular dummy variable were successfully removed. (I checked the…
neutral
  • 107
  • 4
  • 13
0
votes
1 answer

anova output blank when run on lmer model

I'm trying to run an anova model using the lme4 library. I don't have any real data, so I just yanked the Cars93 data from MASS. While I could get lmer(...) to work, I can't seem to get the anova table to print. Here's what happened: >…
Connor_84
  • 1
  • 2
1 2 3 4 5
6