bd_addfit: Add a model fit to a blooddata object

View source: R/kinfitr_blooddata.R

bd_addfitR Documentation

Add a model fit to a blooddata object

Description

This function adds a fit object which can predict values to the blooddata object

Usage

bd_addfit(
  blooddata,
  fit,
  modeltype = c("Blood", "BPR", "parentFraction", "AIF")
)

Arguments

blooddata

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

fit

A model fit object, for which the predict function can be used for new data.

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 inserted.

Author(s)

Granville J Matheson, mathesong@gmail.com

Examples

## Not run: 
blooddata <- bd_addfit(blooddata, hillfit, "parentFraction")

## End(Not run)

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