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