I am trying to run a glmer
model but got an error message saying that a starting value is missing. I tried to find a solution but did not understood most of the tips. Would anyone please be explain what is a starting value and what the solution would be in an easy understandable way?
Study Description
I measured aggression (count data) between animals that had different amount of space = treatment. The idea is to use treatment as continuous variable. I measured aggression three times, where at the first age all pens had the same amount of space (covar) and in then the treatments were applied (age). Aggression was measured at two positions within each pen (position).
Sample Data
agg <- structure(list(age = c(21L, 21L, 39L, 39L), pen = c(1L, 1L, 1L, 1L), treatment = c(4L, 4L, 4L, 4L), position = structure(c(1L, 2L, 1L, 2L), .Label = c("AKB", "BG"), class = "factor"), jost_feed = c(NA, NA, NA, 3L), ovar_jostF_19 = c(1L, 1L, 1L, 1L), aggression = c(NA, NA, NA, 13L), covar_aggr_19 = c(12L, 15L, 12L, 15L)), .Names = c("age", "pen", "treatment", "position", "jost_feed", "covar_jostF_19", "aggression", "covar_aggr_19"), row.names = c(NA, 4L), class = "data.frame")
#
Attempted Code
After the initial exploration of the data I decided to run a gaussian family and use a log link:
agg1<- glmer (y~ treatment + age
+treatment:age
+ (1|pen/covar)+(1|pen/position),
data= agg,
family = gaussian(link = "log"),
na.action=na.omit)
summary(agg1)