Usage
trafo(data, numeric_trafo = id_trafo, factor_trafo = f_trafo,
ordered_trafo = of_trafo, surv_trafo = logrank_trafo,
var_trafo = NULL, block = NULL)
id_trafo(x)
ansari_trafo(x, ties.method = c("mid-ranks", "average-scores"))
fligner_trafo(x, ties.method = c("mid-ranks", "average-scores"))
normal_trafo(x, ties.method = c("mid-ranks", "average-scores"))
median_trafo(x)
consal_trafo(x, ties.method = c("mid-ranks", "average-scores"))
maxstat_trafo(x, minprob = 0.1, maxprob = 1 - minprob)
logrank_trafo(x, ties.method = c("logrank", "HL", "average-scores"))
f_trafo(x)
of_trafo(x)Arguments
data
an object of class data.frame.
numeric_trafo
a function to by applied to numeric
elements of data returning a matrix with nrow(data)
rows and an arbitrary number of columns.
factor_trafo
a function to by applied to factor
elements of data returning a matrix with nrow(data)
rows and an arbitrary number of columns (usually a dummy or contrast
matrix).
ordered_trafo
a function to by applied to ordered
elements of data returning a matrix with nrow(data)
rows and an arbitrary number of columns (usually some scores).
surv_trafo
a function to by applied to
elements of class Surv of data returning a
matrix with nrow(data) rows and an arbitrary number of columns.
var_trafo
an optional named list of functions to be applied to the
corresponding variables in data.
block
an optional factor those levels are interpreted as blocks.
trafo is applied to each level of block separately.
x
an object of classes numeric, ordered, factor or
Surv.
ties.method
two methods are available to adjust scores for ties.
Either the score generating function is applied to mid-ranks
or scores, based on random ranks, are averaged average-scores.
For ties handling in case of censored d
minprob
a fraction between 0 and 0.5.
maxprob
a fraction between 0.5 and 1.