loopcuts_onestep: Change-point p-values at given time points

Description Usage Arguments Value Examples

View source: R/loopcuts_onestep.R

Description

This function computes the p-values at the current time points in input "time"

Usage

1
loopcuts_onestep(time,censor,cuttimes,mono)

Arguments

time

a sequence of time

censor

a vector indicating censored or not at the given times, 0 = censored; 1 = uncensored

cuttimes

unique, sorted, possible times to make the cuts, including 0 and the ending time

mono

0: 2-sided hypothesis: H0: lam1 is equal to lam2; H1: lam1 is not equal to lam2 1: 1-sided hypothesis: H0: lam1 is greater than or equal to lam2; H1: lam1 is less than lam2 2: 1-sided hypothesis: H0: lam1 is less than or equal to lam2; H1: lam1 is greater than lam2

Value

P-values at for all time points in "time"

Examples

1
2
3
4
data(loopcuts_t_c)
time = loopcuts_t_c[,1]
censor = loopcuts_t_c[,2]
loopcuts_onestep(time, censor, 28.03013699, 1)

RPEXE.RPEXT documentation built on July 1, 2020, 6:02 p.m.