latency_one_threshold: Calculate latency and status for meeting threshold

Description Usage Arguments Value

View source: R/latency_one_threshold.R

Description

This function takes as input a matrix with longitudinal measurements (e.g., volumes) and timepoints and returns a matrix with status (threshold reached vs. censored) and latency.

Usage

1
2
latency_one_threshold(dataset, object, identifier = UID, time = age,
  group = group, size_threshold)

Arguments

dataset

matrix

object

(unquoted) variable in 'dataset' to calculate threshold time 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

size_threshold

numeric; set threshold size

Value

matrix containing time and status (threshold reached/censored)


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