Pearson's product-moment correlation
data: dat$x and dat$y
t = 32.297, df = 198, p-value < 2.2e-16
alternative hypothesis: true correlation is not equal to 0
95 percent confidence interval:
0.8914103 0.9364059
sample estimates:
cor
0.9167697
# A tibble: 2 × 7
term estimate std.error statistic p.value conf.low conf.high
<chr> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl>
1 (Intercept) 3.27 1.46 2.24 2.62e- 2 0.393 6.15
2 x 0.930 0.0288 32.3 7.46e-81 0.873 0.987


