oneSampleLogRankTest {OneSampleLogRankTest}R Documentation

Calculate One-Sample Log-Rank Test

Description

Calculate One-Sample Log-Rank Test

Usage

oneSampleLogRankTest(dataSurv, dataPop, type = c("exact", "approximate"))

Arguments

dataSurv

Survival data

dataPop

Population data

type

Type of test

Value

p-value for one-sample log-rank test

Examples

# load data
data(dataSurv_small)
data(dataPop_2018_2021)

# Since the dataset is small run an exact test
oneSampleLogRankTest(dataSurv_small, dataPop_2018_2021, type = "exact")


[Package OneSampleLogRankTest version 0.9.2 Index]