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).
In addition to those specifying the dynamics of stasis and punctuation, parameters include shift1, the index of the last sample before the shit to GRW/URW,
and shift2, the index of the last sample before the return to stasis.
Function opt.sgs returns a paleoTSfit object. Function fit.sgs does the same, but with the following additional 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, fitGpunc, as.paleoTSfitx<- sim.sgs(ns=c(10, 10, 10), ms=0.5, vs=0.3, omega=0.1)
plot(x)
# compare sampled punctuation to uniform unbiased random walk
w.sgs<- fit.sgs(x, minb=8, model="GRW")
w.urw<- opt.URW(x)
compareModels(w.urw, w.sgs)Run the code above in your browser using DataLab