chi2logit: Compute the pseudologit vector for random discrete data using...

Description Usage Arguments Details Value

View source: R/logits.R

Description

Compute the pseudologit vector for random discrete data using Chi squared and Fisher exact tests

Usage

1
chi2logit(Cum, R)

Arguments

Cum

Input vector of cumulative response counts

R

A vector with trial numbers of putative change points

Details

Not normally called directly, but via the cp_wrapper function instead. For cases, in which the chi square test is not valid (expected obersavations all smaller than 5), the Fisher exact test is used instead. Occasionally, for noisy data even this test will fail. In that case use the rrd function instead. Notice that the p values delivered by this test are estimated from a 1000 Monte Carlo simulations.

Value

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


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