Compute basic, encounter-level metrics like mortality and length of stay.
library(vpeval) vpeval_encinfo vpeval_demog basic_metrics(enc_info = vpeval_encinfo, demographics = vpeval_demog)
Compute the mutual information of two discrete variables.
head(mtcars) mi_cluster(mtcars, x_col = "cyl", y_col = "am")
Drug categories are specified by a data frame with columns for drug
and category
. The defaults can be loaded from the vpeval package:
library(vpeval) cats = load_drug_categories() head(cats)
The drug events can be summarized by a binary flag indicating whether or not a drug was given:
library(vpmunge) vpmunge_drugs[, c(1,2,5)] summarize_drug_categories(vpmunge_drugs, categories = cats)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.