Hi everyone,
I am new to aster and struggling a bit so would greatly appreciate any assistance.
I'm analysing data from an experiment where I am testing whether selection on emergence time depends on the identity of neighbouring plants. I planted seeds of an annual plant in plots containing different competitors (CompTreatment) measured when they emerged (GermDateValue). I also am using seed mass which was weighed before planting as a covariate. I measured if individuals survived to flower, if they survived to produce viable seeds, and the total mass of seeds produced.
I used the following graphical model:
1 -> Survival to flower (Bernoulli) -> survival to produce seeds (Bernoulli) -> log(mass of seeds produced) (normal distrubution)
Seed mass was log transformed for normality
The code and model I fitted are below:
brdi.famlist<-list(fam.bernoulli(),fam.normal.location(n))
brdi.pred <- c(0,1,2)
brdi.fam<-c(1,1,2)
layer <- gsub("[0-9]", "", as.character(brdi.redata$varb))
unique(layer)
fit <- as.numeric(layer == "LogSeedProd")
unique(fit)
brdi.redata <- data.frame(brdi.redata, fit = fit)
brdi.aster1 <- aster(resp ~ varb + fit:(CompTreatment * GermDateValue + SeedMassMG) ,
pred=brdi.pred, fam=brdi.fam, varb, id, root, data = brdi.redata, famlist = brdi.famlist)
summary(brdi.aster1, show.graph = TRUE)
However, I get the following error message:
Error in summary.aster(brdi.aster1, show.graph = TRUE) :
cannot compute standard errors
Fitting the model without the interaction doesn't give this error message, so I'm not sure if I'm specifying the model correctly in order to test the interaction between germination date and competition treatment. Any help would be greatly appreciated.
Thank you,
José Waterton
UC San Diego