bd_addfitted: Add fitted values from another fit to a blooddata object

View source: R/kinfitr_blooddata.R

bd_addfittedR Documentation

Add fitted values from another fit to a blooddata object

Description

This function adds the predicted values of an external function to a blooddata object. This allows one to use functions outside of kinfitr to estimate blood values.

Usage

bd_addfitted(
  blooddata,
  time,
  predicted,
  modeltype = c("Blood", "BPR", "parentFraction", "AIF")
)

Arguments

blooddata

A blooddata object created using one of the create_blooddata_* functions.

time

The times of the predictions at a sufficiently detailed level of interpolation.

predicted

The predicted values for the given set of times.

modeltype

The function which the model predicts. One of the following: Blood for models of how the blood data should be described, BPR for models of the blood-to-plasma ratio, parentFraction for models of metabolism, and AIF for models of the arterial input function.

Value

A blooddata object with the model fits inserted.

Author(s)

Granville J Matheson, mathesong@gmail.com

Examples

## Not run: 
blooddata <- bd_addfitpars(
  blooddata, matlabout$time,
  matlabout$predicted, "AIF"
)

## End(Not run)

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