kapmeier_scores function

kapmeier_scores

kapmeier_scores

#' Function that creates a Kaplan Meier comparing first and last tertile of a metabolic score

kapmeier_scores(predictors, pheno, score, Eventname = "Event")

Arguments

  • predictors: The data.frame containing the predictors
  • pheno: The data.frame containing the phenotypes
  • score: a character string indicating which predictor to use
  • Eventname: a character string with the name of the event to print on the plot

Returns

plotly with a Kaplan Meier comparing first and last tertile of a metabolic score

Examples

require(MiMIR) require(plotly) require(survminer) require(ggfortify) require(ggplot2) #load the dataset metabolic_measures <- synthetic_metabolic_dataset phenotypes <- synthetic_phenotypic_dataset #Compute the mortality score mortScore<-comp.mort_score(metabolic_measures,quiet=TRUE) #Plot a Kaplan Meier kapmeier_scores(predictors=mortScore, pheno=phenotypes, score="mortScore")
  • Maintainer: Daniele Bizzarri
  • License: GPL-3
  • Last published: 2024-02-01

Useful links