x<- sim.GRW(ns=30, ms=1, vs=1)
plot(x)
# easier to use fit3models(, method='Joint')
m.urw<- opt.joint.URW(x)
m.grw<- opt.joint.GRW(x)
m.sta<- opt.joint.Stasis(x)
cat(m.urw$AICc, m.grw$AICc, m.sta$AICc, "") # print AICc scores
Run the code above in your browser using DataLab