imputeDoses: Impute Dose Data

Description Usage Arguments Details Value Author(s)

View source: R/imputeDoses.R

Description

Use last-observation-carried-forward to impute missing dose values by hour.

Usage

1
2
3
4
5
6
7
8
imputeDoses(
  data,
  idVar = "id",
  dateVar = "date.dose",
  infusionDoseTimeVar = NULL,
  infusionDoseVar = NULL,
  maxskips = 3
)

Arguments

data

data.frame; data set with dose information

idVar

character string; name of ID variable, defaults to id

dateVar

character string; name of date variable, defaults to date.dose

infusionDoseTimeVar

character string; name of infusion dose time variable

infusionDoseVar

character string; name of infusion dose variable

maxskips

integer; maximum number of missed doses that may be imputed

Details

Creates skips column

Value

data.frame, containing dose data

Author(s)

Cole Beck


pkdata documentation built on Oct. 23, 2020, 6:19 p.m.