measureValuesBetween: measureValuesBetween

View source: R/qualification-pk-ratio.R

measureValuesBetweenR Documentation

measureValuesBetween

Description

Measure the values of x between left and right bounds according to method.

Usage

measureValuesBetween(x, left, right, method = "count", strict = FALSE)

Arguments

x

Numeric values to assess

left

Numeric value(s) used as lower bound

right

Numeric value(s) used as upper bound

method

One of the following methods "count", "ratio", and "percent".

strict

Logical value defining if x is strictly between left and right. Default value is FALSE.

Value

Measure of x values between left and right bounds

Examples

measureValuesBetween(1:12, 7, 9)
measureValuesBetween(1:12, 7, 9, method = "percent")

x <- rnorm(1e2)
measureValuesBetween(x, -1, 1)
measureValuesBetween(x, -1, 1, method = "ratio")

measureValuesBetween(x, cos(x) + 1, cos(x) - 1)

Open-Systems-Pharmacology/OSPSuite.ReportingEngine documentation built on April 13, 2025, 10:37 a.m.