View source: R/10-extract_data.R
extract_all_cor_p | R Documentation |
Retrieves all correlation p-values from a given object with a predefined structure, associating them with their respective shift times.
extract_all_cor_p(object)
object |
An object that includes |
The function accesses the all_cor_p
component from the input object, which is expected to contain
a series of p-values for correlation tests. It then retrieves the shift_time
component from the same
object and uses it to name the elements in the all_cor_p
vector, effectively binding each
p-value with its corresponding shift time. The resulting named vector is then
returned.
A named vector where each name is the corresponding shift time and each value is the p-value for the correlation coefficient associated with that shift time.
The object
is presumed to have an accessible all_cor_p
and shift_time
attributes. This
function is crucial for analyses where the significance of the correlation coefficients
needs to be assessed in relation to their shift times.
data("object", package = "laggedcor")
extract_all_cor_p(object = object)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.