blmod_exp_startpars | R Documentation |
This function guesses reasonable starting parameters for exponential blood models. I use the suggestions from page 515 of Pinheiro & Bates Mixed-Effects Models in S and S-PLUS for creating the exponential starting parameters.
blmod_exp_startpars(
time,
activity,
fit_exp3 = TRUE,
expdecay_props = c(1/60, 0.1)
)
time |
The time of each measurement. |
activity |
The radioactivity of each measurement. |
fit_exp3 |
Should a third exponential be fitted, or is a bi-exponential fit desired? Default is TRUE. |
expdecay_props |
What proportions of the decay should be used for choosing starting parameters for the exponential decay. Defaults to 1/60 and 1/10, i.e. start to 1/60, 1/60 to 1/10 and 1/10 to end. If fitting only two exponentials, the second value will be used. |
A list of the starting parameters
Granville J Matheson, mathesong@gmail.com
blooddata <- pbr28$blooddata[[1]]
blooddata <- bd_blood_dispcor(blooddata)
aif <- bd_extract(blooddata, output = "AIF")
start <- blmod_exp_startpars(aif$time,
aif$aif)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.