Description Usage Arguments Value See Also Examples
Null hypothesis: variable is linear combination of predictors
1 |
f |
model specification formula, as defined by |
method |
method for generating null residuals. Built in methods
'rotate', 'pboot' and 'boot' are defined by |
... |
other arguments passedd onto |
a function that given data
generates a null data set.
For use with lineup
or rorschach
null_permute, null_dist
1 2 3 4 5 6 7 8 9 | if (requireNamespace('reshape2', quietly = TRUE)) {
data("tips", package = "reshape2")
x <- lm(tip ~ total_bill, data = tips)
tips.reg <- data.frame(tips, .resid = residuals(x), .fitted = fitted(x))
library(ggplot2)
ggplot(lineup(null_lm(tip ~ total_bill, method = 'rotate'), tips.reg)) +
geom_point(aes(x = total_bill, y = .resid)) +
facet_wrap(~ .sample)
}
|
decrypt("Jzis NZoZ qA mKgqoqKA hx")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.