Plots the kernel density estimations of the biomarker distributions on positive and negative individuals.
explore_plot(marker, status, observed.time, left, right, time)The ouput is a list with three components:
object of class ggplot.
vector with the biomarker values on negative individuals.
vector with the marker values on positive individuals.
vector with the biomarker values.
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.
explore_table
data(diabet)
explore_plot(marker=diabet$stab.glu, status=diabet$diab)
Run the code above in your browser using DataLab