polypharmacy: Construct an index of polypharmacy.

Description Usage Arguments Value

View source: R/polypharmacy.R

Description

Here the default is assumed to be number of bnf chapters represented in timeframe. poly_index will reflect the total number of sections represented at the requested level. For chapter level, this can be 0-23. Other levels will have different possible totals.

Usage

1
polypharmacy(df, start_date, end_date, bnf_level = 6)

Arguments

df

dataframe of pis data in common format

start_date

start date for period of interest

end_date

end date for period of interest

bnf_level

Level of bnf code to index at. Default is across chapters.

Value

data frame (prochino, poly_index)


davidhen/pisR documentation built on May 24, 2019, 4:01 a.m.