maxpercres: Maximum Percentage Residual

View source: R/kinfitr_miscfuncs.R

maxpercresR Documentation

Maximum Percentage Residual

Description

Function to determine the maximum percentage residual from the fitted value, i.e. the maximum value of a residual as a percentage of its fitted value. This is useful for obtaining estimates of t*.

Usage

maxpercres(outputobject)

Arguments

outputobject

The output of a kinetic model, including a fit object outputobject$fit

Value

The maximum percentage of the fitted value of a residual in the fit.

Author(s)

Granville J Matheson, mathesong@gmail.com

Examples


# Note: Reference region models, and irreversible binding models, should not
# be used for PBR28 - this is just to demonstrate function

data(pbr28)

t_tac <- pbr28$tacs[[2]]$Times / 60
reftac <- pbr28$tacs[[2]]$CBL
roitac <- pbr28$tacs[[2]]$STR
weights <- pbr28$tacs[[2]]$Weights

refloganout <- refLogan(t_tac, reftac, roitac, 0.1, tstarIncludedFrames = 9)

maxpercres(refloganout)

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