trapm: Calculate Area Under the Moment Curve Using Trapezoids

Description Usage Arguments Value

View source: R/trapm.r

Description

Calculates AUMC using the trapezoidal method. Assumes data represent a single profile. Despite choice of method, only linear interpolation is used for areas of intervals beginning or ending with y: 0.

Usage

1
trapm(x = NA, y = NA, method = 1)

Arguments

x

variable names of x coordinates

y

variable names of y coordinates

method

method:

  • 1: linear up - linear down

  • 2: linear up - logarithmic down

  • 3: linear before Tmax, logarithmic after Tmax

Value

area (length-one numeric)


qpNCA documentation built on Aug. 16, 2021, 5:08 p.m.