Description Usage Arguments Value Author(s) See Also Examples
data dredge a data.frame
using cor.test
1 2 |
data |
a |
grid |
a search grid in the form of |
min_pvalue |
the maximum the pvalue from |
max_pvalue |
the maximum the pvalue from |
... |
addtional parameters to pass to |
a tidy data.frame
containing the following components:
the first column to compare
the second column to compare
the estimate from cor.test
the p.value from cor.test
the amount of lag for the current compare
Mark Newman, mark@trinetteandmark.com
Other dredging: dredge_regression
1 2 3 4 5 6 7 8 9 10 11 |
set.seed(0)
y1 <- seq(-10, 10, .5)
y2 <-
y1 + y1 %>%
length() %>%
rnorm()
registerDoParallel(cores=2)
data <- data.frame(y1, y2)
grid <- data %>% make_correlation_grid()
data %>% dredge_correlation(grid)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.