blood_dispcor: Perform dispersion correction on blood data collected using...

View source: R/kinfitr_bloodfuncs.R

blood_dispcorR Documentation

Perform dispersion correction on blood data collected using ABSS

Description

Perform dispersion correction on continuous blood samples from vectors as per http://www.turkupetcentre.net/petanalysis/input_dispersion.html. The measured values are first interpolated so that all measurements have an equal time between them, so any missing measurements are interpolated.

Usage

blood_dispcor(
  time,
  activity,
  tau,
  timedelta = NULL,
  keep_interpolated = F,
  smooth_iterations = 0
)

Arguments

time

Vector of time (in seconds) of each sample.

activity

Vector of measured radioactivity concentrations in blood samples.

tau

Time constant denoting the time of dispersion (in seconds).

timedelta

The time difference between each measured sample. Defaults to the most common time difference between the first 20 measurements.

keep_interpolated

Defaults to TRUE: should interpolated samples which were not included in the original input be included in the output.

smooth_iterations

The number of times that the smoothing of each pair of observations should be performed using blood_smooth. Defaults to 0.

Value

A tibble containing the measured times and radioactivity concentrations after dispersion correction.

Examples

time <- 1:20
activity <- rnorm(20)
tau <- 2.5

blood_dispcor(time, activity, tau, 1)

mathesong/kinfitr documentation built on Jan. 15, 2024, 11:07 p.m.