Skip to contents
Virtual_med_one()
calculate the virtual dataset of a patient
bind_cut_cate()
Extract the statistical summary generated by calcu
for classified data
bind_cut_cont()
Extract the statistical summary generated by calcu
for continuous data
calcu()
use gtsummary
to faster descriptive statistics
a dataframe.In order to reduce the amount of computation, it is
usually necessary to remove very discrete classification variables, such as
patient ID.
calcu_age()
Calculate the age of the patient
cut_label()
Provide grouping tags for cut
data_med
Virtual medical data set built into pmed
interval_real_period()
Calculate the non overlapping actual medication days of patients in the intersection of multiple times.
load_pkg()
packages of medical statistics
mean_sd()
Calculate mean
and sd
of a given variable
mmc()
Mutate multiple split variable columns
mutate_class()
Convert one continuous variables into grouped variables
pe()
Count the number of patients in the table.
pop_perc()
Calculate the number and proportion of patients
tr()
tr_nst()
Multivariable type conversion
virtual_med_mulp()
Generate virtual datasets for multiple patients
wider_clean()
Long table to width table, for patients' drug list and diagnosis table