log_likelihood_method: Wrapper method for log-likelihood estimation.

Description Usage Arguments Value Author(s)

Description

Generates the log-likelihood for the specified partition given the current tau value. Additionally, this wrapper handles the different data structures possible for part_values and whole_values.

Usage

1
2
3
4
log_likelihood_method(object, part, tau)

## S4 method for signature 'changepointsMod'
log_likelihood_method(object, part, tau)

Arguments

object

Corresponding changepointsMod class.

part

Index for current partition, should be 1 or 2.

tau

Current change-point. Should be between buff and N - buff.

Value

The log-likelihood estimate for the current state. There are currently three possible versions depending on the form of the part_values and whole_values provided. 1) If only part_values are provided, then we assume the log-likelihood takes only the part_values. 2) If only whole_values are provide, we assume the log-likelihood takes only the whole_values. 3) If both part_values and whole_values are provided, we assume that the log-likelihood takes both.

Author(s)

Leland Bybee <lelandb@umich.edu>


lbybee/changepointsHD documentation built on Sept. 6, 2019, 6:31 p.m.