lbtest: This function implements asymptotic and bootstrap test of...

Description Usage Arguments Details Value Author(s) References Examples

View source: R/lbiassurv.R

Description

This function implements a visual and a formal test. The formal test produces the asymptotic and the bootstrap p-values.

Usage

1
lbtest(time, censor, entry, offset = 0, bootstrap = TRUE, plot = TRUE, alternative = "two.sided", boot.control = list(confidence.level = 0.95, iter = 1000), plot.control = list())

Arguments

time

The observed time as a vector.

censor

The survival indicator, 1 if censored, 0 otherwise.

entry

Time to entry.

offset

Offset value.

bootstrap

Logical, generate bootstrap p-values.

plot

Logical, generate a visual test.

alternative

The alternative hypothesis for computing the p-value, two.sided, less, or greater.

boot.control

A list of control parameters for bootstrap.

plot.control

A list of control parameters for the visual test.

Details

The bootstrap is time consuming for large data.

Value

A list of test statistic, its standard error and the p-value.

Author(s)

Pierre-Jerome

References

Addona & Wolfson (2006), Wei (1980), Asgharian, Wolfson & Zhang (2006).

Examples

1
2
3
4
mydata=lbsample(1000,family="exponential",par=list(rate=1))

lbtest(time=mydata$time, censor=mydata$censor, entry=mydata$entry, 
offset=0, bootstrap=FALSE, plot=FALSE,alternative="two.sided")

lbiassurv documentation built on May 2, 2019, 4:50 p.m.

Related to lbtest in lbiassurv...