View source: R/kinfitr_blooddata.R
bd_addfitpars | R Documentation |
This function adds the fitted parameters of a known model to the blooddata object.
bd_addfitpars(
blooddata,
modelname,
fitpars,
modeltype = c("Blood", "BPR", "parentFraction", "AIF")
)
blooddata |
A blooddata object created using one of the create_blooddata_* functions. |
modelname |
The name of the model function which produces fitted outcomes for given parameters. |
fitpars |
The fitted parameters as a named list, data.frame or tibble. |
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. |
A blooddata object with the model inserted.
Granville J Matheson, mathesong@gmail.com
## Not run:
blooddata <- bd_addfitpars(blooddata, hillfit_model, hillfit$pars, "parentFraction")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.