Skip to contents

Calculate fraction of observations below lloq / above uloq

Usage

loq_frac(x, limit = 1, cens = c("left", "right", "neither", "both"))

Arguments

x

A numeric vector

limit

censoring limit (ignored if cens="neither")

cens

censoring direction

Value

The fraction of observations (NA is counted as below/above)