Description Usage Arguments Details Value Examples
Landmark (survival curve comparison at fixed point in time) analysis based on Klein 2007 (statistics in Medicine)
1 |
survival |
time-to-event variable |
cnsr |
censoring variable: 1=censoring, 0=event |
trt |
treatment varaible. Accepted values are either "experiment" or "control" |
stra |
stratification variable. Default is |
fparam |
a list input
|
The p-Values from the following transformations of survival are included:
No transformation
log(S)
log(-log(S))
arcsin(sqrt(S))
log(S/(1-S))
The function return a list with the follow components
One-sided p-Value from user specified test
One-sided test from various transformations
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | # Lankmark analysis on the simulated data
library(survMisc)
medC = 6
hr <- c(1, 0.6)
intervals <- 3
gamma <- c(2.5, 5, 7.5, 10) ## a ramp-up enrollment
R <- c(2 , 2, 2 , 6 ) ## enrollment period: total of 12 months
eta <- -log(0.99) ## 1% monthly dropout rate
sim1 <- nphsim(nsim=1,lambdaC=log(2)/medC,lambdaE=log(2)/medC*hr, ssC=300,ssE=300,
intervals=intervals,gamma=gamma, R=R,eta=eta)
test1 <- simtest(x=sim1, anaD=c(250,300), method=lmk.Stat,fparam=list(lmk=9, lmktype='loglog'))
test1$result[]
# direct function call (without cutoff)
lmk.Stat(surv=sim1$simd$survival, cnsr=sim1$simd$cnsr, trt=sim1$simd$treatment,
fparam=list(lmk=9, lmktype='loglog'))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.