# NOT RUN {
x<- sim.GRW(ns=40)
mS<- fitSimple(x, model="URW", method="Joint")
mC<- fitModeShift(x, order="Stasis-RW", rw.model="URW", method="Joint")
compareModels(mS, mC) ## AICc comparisons
# }
# NOT RUN {
boot<- bootSimpleComplex(x, mS, mC, nboot=20)
cat("Bootstrap p-value: ", boot$p.value, "\n")
# }
Run the code above in your browser using DataLab