Usage
fitGpunc(y, ng = 2, minb = 5, pool = TRUE, oshare = TRUE, method=c('AD', 'Joint'), silent = FALSE, hess=FALSE, ...)
opt.punc(y, gg, cl = list(fnscale = -1), pool = TRUE, meth = "L-BFGS-B", hess = FALSE, oshare)
opt.joint.punc(y, gg, cl=list(fnscale=-1), pool=TRUE, meth="L-BFGS-B", hess=FALSE, oshare)
logL.punc(p, y, gg)
logL.punc.omega(p, y, gg)
logL.joint.punc(p, y, gg)
logL.joint.punc.omega(p, y, gg)
Arguments
ng
the number of separate segments in the sequence
minb
the minimum number of samples within a segment to consider
pool
logical indicating whether to pool variances across samples
oshare
logical, if TRUE
, the same variance (omega
) is assumed across all segments. If FALSE
, separate variances are assumd for each segment
method
parameterization to use: based on ancestor-descendant (AD) differences, or on Joint consideration of all samples
silent
if TRUE
, less information is printed to the screen as the model is fit
hess
if TRUE
, standard errors are computed from the Hessian matrix
...
other arguments to send to opt.punc
p
parameters of the punctuation model to be optimized
gg
numeric vector indicating membership of each sample in segments 1, 2, .. ng
cl
control list to be passed to optim
meth
optimization method, to be passed to optim