sample_window: Generate Intensive Sampling Times for mrgsolve Conditional on...

Description Usage Arguments Author(s)

Description

The sample_window function uses dose administration times to generate additional observations for insertion into a mrgsolve dataset. The more intensive sampling around drug doses may help more accurately estimate quantities such as AUC, while avoiding potentially time-consuming oversampling at other times.

Usage

1
2
sample_window(dosetime, interval, sampfreq, include = FALSE,
  before = FALSE, negtime = FALSE)

Arguments

dosetime

Numeric. Vector of dose administration times.

interval

Numeric. A single value corresponding to the width of the sampling interval.

sampfreq

Numeric. The frequency of sampling (in fractions of an hour).

include

Logical. Should dose times be included for sampling? Default is to avoid resampling at dose times.

before

Logical. Should additional samples be taken before dose times, or only after a dose is administered?

negtime

Logical. Should negative times be allowed? Default is to disallow negative observation times.

Author(s)

Ryan Kyle, ryan.kyle@mail.mcgill.ca


rpkyle/cscmisc documentation built on May 13, 2019, 12:06 p.m.