ainB: Check if event time is contained within half-open interval

View source: R/base_functions.R

ainBR Documentation

Check if event time is contained within half-open interval

Description

Function which takes as input a vector a with event times and a 2 column matrix B representing half-open intervals (l, R] and checks whether each event time is contained in each half-open interval.

Usage

ainB(a, B)

Arguments

a

Vector of event times

B

Two column matrix containing intervals

Value

Matrix of size (length(a) * nrow(B)) with binary values indicating whether the event times in a are contained in the intervals of B


icmstate documentation built on April 3, 2025, 8:06 p.m.