This function provides descriptive statistics for the pooled sample and the samples of positive, negative individuals and those whose condition is unknown.
explore_table(marker, status, observed.time, left, right, time, d, ...)The ouput is a list with two components:
matrix whose columns are the statistics described above and the rows show the corresponding results for each sample.
object of class flextable that represent the matrix in summary in a customizable table.
vector with the biomarker values. It is a mandatory parameter.
numeric response vector. The highest value is assumed to stand for the subjects having the event under study. The lowest value, for those who do not. Any other value will not be considered.
vector with the observed times for each subject, for prognosis scenarios under right censorship. Notice that these values may be the event times or the censoring times.
vector containing the lower edges of the observed intervals. It is mandatory in prognosis scenarios under interval censorship and ignored in other situations.
vector with the upper edges of the observed intervals. It is mandatory in prognosis scenarios under interval censorship and ignored in other situations. The infinity is admissible as value (indicated as inf).
point of time at which the sMS ROC curve estimator will be computed. The default value is 1.
number of decimal figures to which the results will be rounded.
additional parameters of the flextable function which allow to customize the output table.
The function computes the following descriptive statistics for the pooled sample and the samples of the different groups of individuals: minimum, maximun, mean, variance, standard deviation, and first, second and third quartiles.
explore_plot
data(diabet)
explore_table(marker=diabet$stab.glu, status=diabet$diab)
Run the code above in your browser using DataLab