latency_two_thresholds: Calculate latency and status between thresholds

Description Usage Arguments

View source: R/latency_two_objects.R

Description

This function takes as input a matrix with longitudinal measurements (e.g., volume) and timepoints and returns a matrix holding the status (second threshold reached vs. censored) and latency between two given thresholds.

Usage

1
2
latency_two_thresholds(dataset, object, identifier = UID, time = age,
  group = group, lower_threshold, upper_threshold)

Arguments

dataset

matrix

object

(unquoted) variable in 'dataset' to calculate latency for

identifier

(unquoted) variable in 'dataset' defining samples/replicates; one sample can have several pertaining objects

time

(unquoted) variable in 'dataset' indicating time at measurement

group

(unquoted) variable in 'dataset' indicating groups samples pertain to

lower_threshold

numeric; lower threshold

upper_threshold

numeric; upper threshold


benostendorf/thresholdr documentation built on Nov. 4, 2019, 7:14 a.m.