View source: R/Analyses_functions_2.R
cross_T | R Documentation |
Computes the estimated t
value(s), in which a time series crosses a specific
constant level for the provided time interval or its sub-interval.
cross_T(X, A, subI = NULL, plot = FALSE, vline = FALSE)
X |
Data frame where the first column is a numeric time sequence |
A |
Constant level as a numeric value. |
subI |
Time sub-interval as a vector, where the lower bound is the first element and the upper bound is the second. Optional: If provided estimated crossing times of the sub-interval is returned, otherwise the whole time interval is considered. |
plot |
Logical: If |
vline |
Logical: If |
The estimated crossing times at a given level.
cross_rate
, cross_mean
t <- seq(0, 1, length = 100)
TS <- data.frame("t" = t, "X(t)" = rnorm(100))
cross_T(TS, 0.1, subI = c(0.2, 0.8), plot = TRUE, vline = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.