# NOT RUN {
## generate data for a directional sequence
y <- sim.GRW(ns=30, ms=1, vs=1)
plot(y)
m.rw<- opt.GRW(y)
m.rwu<- opt.URW(y)
m.sta<- opt.Stasis(y)
m.ss<- opt.StrictStasis(y)
## print log-likelihoods; easier to use function fit4models()
compareModels(m.rw, m.rwu, m.sta, m.ss)
# }
Run the code above in your browser using DataLab