Learn R Programming

cif (version 0.1.1)

crossing: computes at which observation a vector y crosses ref for the first time

Description

Computes at which observation vector yfor crosses yref for the first time if it is not crossed, then 0 is returned

Usage

crossing(yfor, ref = 0)

Arguments

yfor

yfor is either a vector and a matrix

ref

ref is the refence value

Value

whensign, a matrix with observation number at which there is crossing

References

Berta et al. 2020