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

View source: R/crossing.R

crossingR Documentation

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

Author(s)

P. Berta, P. Paruolo, S. Verzillo, PG. Lovaglio

References

Berta et al. 2020


cif documentation built on March 18, 2022, 6:14 p.m.

Related to crossing in cif...