find_difference | R Documentation |
Return the regions in which the smooth is significantly different from zero.
find_difference(mean, se, xVals = NULL, f = 1, as.vector = FALSE)
mean |
A vector with smooth predictions. |
se |
A vector with the standard error on the smooth predictions. |
xVals |
Optional vector with x values for the smooth.
When |
f |
A number to multiply the |
as.vector |
Logical: whether or not to return the data points as vector, or not. Default is FALSE, and a list with start and end points will be returned. |
The function returns a list with start points of each region
(start
) and end points of each region (end
). The logical
xVals
indicates whether the returned values are on the x-scale
(TRUE) or indices (FALSE).
Jacolien van Rij
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.