Returns log-likelihood for a model with an Unbiased Random Walk in the first segment and an Unbiased Random Walk in the second segment.
Arguments
- p
parameters of the model to be optimized
- y
a paleoTS object
- gg
numeric vector indicating membership of each sample in a segment