I'm trying to conduct a post-hoc (multiple comparison) analysis on the data (bmt
), (KMsurv
) and focusing on the variables t2
and d3
only.
Here is the code used:
library(KMsurv)
data(bmt)
bmt
library(survival)
# run the ANOVA and print out the ANOVA table:
anova1 <- aov( (t2,d3) ~ group, data = bmt )
summary(anova1)
TukeyHSD(anova1)
I got this error message: Error in TukeyHSD.aov(anova1) : no factors in the fitted model In addition: Warning messages: 1: In replications(paste("~", xx), data = mf) : non-factors ignored: t2 2: In replications(paste("~", xx), data = mf) : non-factors ignored: d3
I have installed the package multcomp
but I'm not sure if this package is necessary.
How can I fix that error?