segCCR_test: test the existence of a change point in segCCR

View source: R/segCCR_test.R

segCCR_testR Documentation

test the existence of a change point in segCCR

Description

Test the existence of a change in segCCR.

Usage

segCCR_test(dat, tm, NB = 100)

Arguments

dat

an optional data frame, list or environment (or object coercible by as.data.frame to a data frame) containing the variables in the model.

tm

The vector of tm.

NB

The replicate times to simulate the p-values.

Details

Please refer to Zhang, F. and Li, Q. (2022).

Value

A list with the elements:

pv

the p-value.

Tn

the Tn test statistic.

Tn.rw

the Tn test statistic by random weighted method.

Author(s)

Feipeng Zhang and Qunhua Li

References

Zhang, F. and Li, Q. (2022). Segmented correspondence curve regression for quantifying covariate effects on the reproducibility of high-throughput experiments.

Examples

## The example of ChIP-seq data
## Not run: 
data(ChIPseq)
## test
m = 100
tm <- seq(0.01, 0.999, length.out = m)
fit = segCCR_test(ChIPseq,
           tm=tm,
           NB = 10)

## End(Not run)

FPZhang2015/segCCR documentation built on June 25, 2022, 5:20 a.m.