powered by
Computes at which observation vector yfor crosses yref for the first time if it is not crossed, then 0 is returned
crossing(yfor, ref = 0)
yfor is either a vector and a matrix
ref is the refence value
whensign, a matrix with observation number at which there is crossing
Berta et al. 2020