# NOT RUN {
# for reproducibility
set.seed(123)
library(statsExpressions)
options(tibble.width = Inf, pillar.bold = TRUE, pillar.neg = TRUE)
# without changing defaults
corr_test(
data = ggplot2::midwest,
x = area,
y = percblack
)
# changing defaults
corr_test(
data = ggplot2::midwest,
x = area,
y = percblack,
type = "robust"
)
# }
Run the code above in your browser using DataLab