calc_norm_perc: Calculate normalized percentage

Description Usage Arguments Value

View source: R/calc_norm_perc.R

Description

Calculate the normalized percentage of observations in a particular group (e.g. spending bin) within a larger group (e.g. enrollment month)

Usage

1
calc_norm_perc(DT, x1, x2)

Arguments

DT

data.table

x1

character, the variable you want the normalized percentage of

x2

character vector, the variables you want to normalize by

Value

data.table of normalized perctages by group


evanjflack/polypharmacy documentation built on Oct. 12, 2020, 10:45 a.m.