View source: R/kinfitr_bloodfuncs.R
blood_dispcor | R Documentation |
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.
blood_dispcor(
time,
activity,
tau,
timedelta = NULL,
keep_interpolated = F,
smooth_iterations = 0
)
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. |
A tibble containing the measured times and radioactivity concentrations after dispersion correction.
time <- 1:20
activity <- rnorm(20)
tau <- 2.5
blood_dispcor(time, activity, tau, 1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.