Significant Cutoff Value for Logrank Analysis
logrank(data, time, y, x, cut.numb, n.per, y.per, p.cut = 0.05,
strict = TRUE, include = "low", round = 2, adjust = 1)
data
name for time variable
name for y, must be coded as 1 and 0. The outcome must be 1
name for x
number of cutoff points
the least percentage of the smaller group comprised in all patients
the least percentage of the smaller outcome patients comprised in each group
cutoff of p value, default is 0.05
logical. TRUE means significant differences for each group combination were considered. FALSE means considering for any combination
direction of cutoff point. Any left letter of lower or upper
digital. Default is 2
numeric value, adjust methord for p value. 1, defaulted, represents Bonferroni. 2 represent formula given by Douglas G in 1994
a dataframe contains cutoff points value, subject numbers in each group, dumb variable, beta of regression and p value.
# NOT RUN {
logrank(data=mtcars,
time = 'disp',y='am', x='wt',
cut.numb=2,
n.per=0.25,
y.per=0.10)
logrank(data=mtcars,
time = 'disp',y='am', x='wt',
cut.numb=2,
n.per=0.25,
y.per=0.10,
p.cut=0.05,
strict=TRUE,
include='low',
round=2)
# }
Run the code above in your browser using DataLab