# NOT RUN {
# for reproducibility
set.seed(123)
library(statsExpressions)
# without changing defaults
expr_corr_test(
data = ggplot2::midwest,
x = area,
y = percblack,
type = "parametric"
)
# changing defaults
expr_corr_test(
data = ggplot2::midwest,
x = area,
y = percblack,
beta = 0.2,
type = "robust"
)
# }
Run the code above in your browser using DataLab