trun: Truncate the cumulative record at significant change point

Description Usage Arguments Details Value

View source: R/cpfinders.R

Description

Truncate the cumulative record at significant change point

Usage

1
trun(Cum, R, L, Crit)

Arguments

Cum

Input vector of cumulative response counts

R

A vector with trial numbers of putative change points

L

A vector giving for each trial the pseudologit, approximately the log of the odds that there has been a change point

Crit

A real-valued decision criterion on logit

Details

Not normally called directly, but via the cp_wrapper function instead. Works for both discrete and continuous cumulative records. All input arguments are obligatory.

Value

A list of Cumt, the truncated cumulative record, Lt, the truncated L vector up to the row at which a change point was detected, and r, the row at which L was truncated.


ontogenerator/cpdetectoR documentation built on May 14, 2019, 1:59 a.m.