Description Usage Arguments Value Author(s) See Also Examples
data dredge a data.frame
using lm
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 model being applied to the data.frame
the best p.value for any model coefficient
the overall r for the model
Mark Newman, mark@trinetteandmark.com
Other dredging: dredge_correlation
1 2 3 4 5 6 7 8 9 10 |
set.seed(0)
y1 <- c(rnorm(10), rnorm(10, mean = 2))
y2 <- rep(c("a", "b"), c(10,10))
registerDoParallel(cores=2)
data <-
data.frame(y1, y2) %>%
adjust_grid_for_regression()
grid <- data %>% make_regression_grid()
data %>% dredge_regression(grid)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.