innerMedicinMacro: The heart of the medicin macro

Description Usage Arguments Author(s)

View source: R/RcppExports.R

Description

Inner process of medicin macro

Usage

1
2
innerMedicinMacro(dat, admdat, doses, idunique, prescriptionwindow,
  maxdepot, collapse)

Arguments

dat

data set

admdat

admission data

doses

doses

idunique

unique subject ids

prescriptionwindow

prescription window

maxdepot

see medicine macro

collapse

If TRUE collapse admission periods when there is not a single day out of hospital in between.

Author(s)

Helene Charlotte Rytgaard and Thomas Alexander Gerds


tagteam/heaven documentation built on Feb. 16, 2019, 8:21 p.m.