noUseAtMissingBaseline: Set missing medication info at baseline and immediately after...

View source: R/helperFunctions.R

noUseAtMissingBaselineR Documentation

Set missing medication info at baseline and immediately after to 0 which means no use

Description

Use this function carefully as it assumes that missing data means no prescritpions

Usage

noUseAtMissingBaseline(df, blockLength, dataName)

Arguments

df

wide format result data frame

blockLength

length of consecutive blocks that are empty after baseline

dataName

name of the data columns

Value

data frame with no medication use added at baseline and immediately after if missing


smm52/timeBlocks documentation built on Nov. 27, 2022, 3:54 a.m.