fit.sgs(y, minb = 5, oshare = TRUE, pool = TRUE, silent = FALSE, hess = FALSE, meth = "L-BFGS-B", model = "GRW")
opt.sgs(y, gg, cl = list(fnscale = -1), meth = "L-BFGS-B", hess = FALSE, oshare = TRUE, model = "GRW")
logL.sgs(p, y, gg, model = "GRW")
logL.sgs.omega(p, y, gg, model = "GRW")paleoTS objectTRUE, the same variance (omega) is assumed across the starting and ending Stasis segments. If FALSE, separate variances are assumedTRUE, less information is printed to the screen as the model is fitTRUE, standard errors are computed from the Hessian matrixoptimGRW or URW, indicating whether evolution during the transitional interval is directional (general random walk) or not (unbiased random walk)optimp),
assuming that the periods of Stasis have the same variance (logL.punc.omega) or different variances (logL.punc).
Functions fitGpunc and opt.punc return a list with the following elements:optimoptimoptimhess = TRUE)optimfit.sgs also returns the following elements:GG corresponds to the elements of all.loglfit.sgs, which will calls the other functions in order to find the best parameter
estimates and shift points for the segments.sim.sgs, opt.GRW, fitGpuncx<- sim.sgs(ns=c(15, 10, 15), ms=0.5, vs=0.3)
plot(x)
# compare sampled punctuation to uniform models
w1<- fit.sgs(x, minb=7, model="GRW")
wu<- fit3models(x, silent=TRUE)
aa<- akaike.wts(c(w1$AICc, wu$aicc))
names(aa)[1]<- "Samp.Punc"
cat("Akaike Weights:
")
print(round(aa,5))Run the code above in your browser using DataLab