I am doing linear mixed regression in R, but it keeps happening that one of factors that I wanna test is lost in summary
my original code is:
m1 <- glmer(RT ~ 1 + estimation* reciprocity * stimu + (1+estimation* reciprocity|subid),
data = data_df,family=Gamma(link = "identity"))
part of my data set is like:
structure(list(subid = structure(c(1L, 1L, 1L, 1L, 1L), levels = c("102",
"103", "105", "106", "107", "108", "109", "110", "111", "201",
"202", "203", "205", "206", "207", "208", "209", "210", "211",
"212", "213", "214", "215", "216", "217", "218", "219", "220",
"221", "222"), class = "factor"),RT = c(4.2949, 2.6489, 2.6151, 3.1587, 3.2296
), stimu = structure(c(2L, 1L, 2L, 1L, 2L), levels = c("0", "1"
), contrasts = structure(c(1, -1), dim = 2:1, dimnames = list(
c("0", "1"), "[S.0]")), class = "factor"), estimation = structure(c(1L,
1L, 1L, 1L, 1L), levels = c("0", "1"), contrasts = structure(c(1,
-1), dim = 2:1, dimnames = list(c("0", "1"), "[S.0]")), class = "factor"),reciprocity = structure(c(1L, 1L, 1L, 1L, 1L), levels = c("0",
"1"), contrasts = structure(c(1, -1), dim = 2:1, dimnames = list(
c("0", "1"), "[S.0]")), class = "factor"))
Please help me with this problem... I suppose that there is something wrong with my dataset or something like that~
I tried a lot and find that if factors "reciproity" and "estimation" exist simultaneous , model can only work out the front one. Please help me!!! Thanks!!!