This report investigates the relationship between annual vehicle mileage (\(X\), in thousand km) and annual motor claim cost (\(Y\), in RM thousand) using a synthetic teaching dataset of \(n = 60\) motor insurance policyholders. All conclusions apply strictly to this synthetic data set rather than an actual insurance portfolio.
Variables: X = annual_mileage (thousand
km); Y = claim_cost (RM thousand). Significance level used
throughout: \(\alpha = 0.05\).
# Data embedded exactly as in Appendix A (ID order 1-60). Do not alter.
annual_mileage <- c(
8, 20, 25, 15, 11, 11, 11, 11, 15, 23, 20, 23, 17, 32, 11, 8, 8, 29, 8, 8, 23, 32, 17, 20, 11, 29, 29, 17, 11, 15,
32, 32, 17, 32, 23, 15, 17, 20, 29, 8, 11, 25, 15, 23, 17, 29, 29, 15, 25, 11, 20, 25, 11, 11, 32, 23, 25, 25, 11, 20)
claim_cost <- c(
2.54, 2.72, 4.33, 2.33, 3.34, 3.64, 1.71, 4.85, 4.01, 4.50, 2.90, 2.73, 2.67, 4.70, 3.14, 2.47, 1.50, 5.52, 1.87, 3.05, 5.72, 5.23, 3.03, 3.58, 3.87, 4.11, 5.99, 2.92, 2.30, 3.75,
6.99, 5.18, 3.26, 3.32, 5.36, 4.01, 4.23, 4.22, 5.56, 3.66, 3.60, 5.34, 4.06, 5.57, 3.92, 4.84, 5.72, 4.45, 5.38, 3.33, 4.25, 5.10, 2.63, 2.29, 6.33, 5.17, 5.67, 4.38, 3.45, 3.92)
dat <- data.frame(policy_id = 1:60, annual_mileage, claim_cost)
x <- dat$annual_mileage
y <- dat$claim_cost
n <- nrow(dat)
stopifnot(n == 60, length(x) == length(y))
desc <- data.frame(
Variable = c("Annual mileage X (thousand km)", "Claim cost Y (RM thousand)"),
n = n,
Mean = c(mean(x), mean(y)),
SD = c(sd(x), sd(y)),
Min = c(min(x), min(y)),
Q1 = c(quantile(x, .25), quantile(y, .25)),
Median = c(median(x), median(y)),
Q3 = c(quantile(x, .75), quantile(y, .75)),
Max = c(max(x), max(y)))
knitr::kable(desc, digits = 3, caption = "Descriptive summaries")
| Variable | n | Mean | SD | Min | Q1 | Median | Q3 | Max |
|---|---|---|---|---|---|---|---|---|
| Annual mileage X (thousand km) | 60 | 19.100 | 7.752 | 8.0 | 11.000 | 18.500 | 25.000 | 32.00 |
| Claim cost Y (RM thousand) | 60 | 4.004 | 1.248 | 1.5 | 3.045 | 3.965 | 5.117 | 6.99 |
plot(x, y, pch = 19, col = "steelblue",
xlab = "Annual mileage (thousand km)", ylab = "Annual claim cost (RM thousand)",
main = "Claim cost versus annual mileage (n = 60)")
abline(lm(y ~ x), col = "red", lwd = 2)
lines(lowess(x, y), col = "darkgreen", lty = 2, lwd = 2)
legend("topleft", c("OLS line", "LOWESS smoother"), col = c("red", "darkgreen"),
lty = c(1, 2), lwd = 2, bty = "n")
Mileage averages 19.1 thousand km (SD 7.75) and claim cost averages RM 4.00 thousand (SD 1.25, range 1.50 to 6.99). Mileage takes only 9 distinct values (8, 11, 15, 17, 20, 23, 25, 29, 32), so the plot shows vertical stacks of points. Claim cost rises with mileage, and a straight line looks plausible, but the scatter around it is substantial.
r_p <- cor(x, y, method = "pearson")
r_s <- cor(x, y, method = "spearman")
tau <- cor(x, y, method = "kendall") # R's Kendall in cor() is tau-b
cors <- data.frame(Measure = c("Pearson r", "Spearman rs", "Kendall tau-b"),
Estimate = c(r_p, r_s, tau))
knitr::kable(cors, digits = 4, caption = "Correlation measures")
| Measure | Estimate |
|---|---|
| Pearson r | 0.7417 |
| Spearman rs | 0.7323 |
| Kendall tau-b | 0.5643 |
# Ties
tie_x <- table(x); tie_y <- table(y)
cat("Distinct X values:", length(tie_x), "of", n, "\n")
## Distinct X values: 9 of 60
cat("Distinct Y values:", length(tie_y), "of", n, "\n")
## Distinct Y values: 57 of 60
knitr::kable(as.data.frame(tie_x, responseName = "count") |> setNames(c("Mileage", "Count")),
caption = "Frequency of tied mileage values")
| Mileage | Count |
|---|---|
| 8 | 6 |
| 11 | 12 |
| 15 | 6 |
| 17 | 6 |
| 20 | 6 |
| 23 | 6 |
| 25 | 6 |
| 29 | 6 |
| 32 | 6 |
The three measures are Pearson r = 0.742, Spearman rₛ = 0.732 and Kendall τ-b = 0.564. All are clearly positive, and Pearson and Spearman are close, which suggests the relationship is roughly linear with no outlier distorting it. Kendall is smaller because it counts concordant and discordant pairs on a different scale, which is normal. Ties in mileage exist (6 to 12 policyholders share each value), so Spearman uses average ranks and Kendall uses the tau-b correction.
t_p <- cor.test(x, y, method = "pearson")
t_s <- cor.test(x, y, method = "spearman", exact = FALSE) # ties => asymptotic
t_k <- cor.test(x, y, method = "kendall", exact = FALSE) # ties => normal approx
tests <- data.frame(
Test = c("Pearson (t-test, df = n-2)", "Spearman (t-approximation)", "Kendall tau-b (normal approx.)"),
Estimate = c(t_p$estimate, t_s$estimate, t_k$estimate),
Statistic = c(t_p$statistic, t_s$statistic, t_k$statistic),
p_value = c(t_p$p.value, t_s$p.value, t_k$p.value))
tests$Decision <- ifelse(tests$p_value < alpha, "Reject H0", "Fail to reject H0")
knitr::kable(tests, digits = 6, caption = "Two-sided tests of association, alpha = 0.05")
| Test | Estimate | Statistic | p_value | Decision | |
|---|---|---|---|---|---|
| cor | Pearson (t-test, df = n-2) | 0.74175 | 8.4228 | 0 | Reject H0 |
| rho | Spearman (t-approximation) | 0.73235 | 9632.8346 | 0 | Reject H0 |
| tau | Kendall tau-b (normal approx.) | 0.56426 | 6.0756 | 0 | Reject H0 |
Hypotheses. \(H_0: \rho = 0\) vs \(H_1: \rho \neq 0\) (Pearson); \(H_0: \rho_s = 0\) vs \(H_1: \rho_s \neq 0\) (Spearman); \(H_0: \tau = 0\) vs \(H_1: \tau \neq 0\) (Kendall).
For the 60 policyholders, the computed correlation coefficients are Pearson’s \(r = 0.7155\), Spearman’s \(r_s = 0.7170\), and Kendall’s All three p-values are far below 0.05: Pearson about 1.2 × 10⁻¹¹, Spearman about 2.9 × 10⁻¹¹ and Kendall about 1.2 × 10⁻⁹. So you reject H₀ in each case. In this dataset, higher mileage is associated with higher claim cost. The Spearman and Kendall p-values are approximations because of the ties.
px <- c(1, 2, 2, 4, 5)
py <- c(2, 1, 3, 3, 5)
obs_s <- cor(px, py, method = "spearman")
obs_k <- cor(px, py, method = "kendall")
# Generate all permutations of indices (base R), then keep distinct arrangements of Y
perms <- function(v) {
if (length(v) <= 1) return(matrix(v, nrow = 1))
out <- NULL
for (i in seq_along(v)) out <- rbind(out, cbind(v[i], perms(v[-i])))
out
}
all_perm <- perms(py) # 5! = 120 rows
distinct <- unique(all_perm) # distinct rearrangements of Y
n_total <- nrow(all_perm)
n_distinct <- nrow(distinct)
stat_s <- apply(distinct, 1, function(yy) cor(px, yy, method = "spearman"))
stat_k <- apply(distinct, 1, function(yy) cor(px, yy, method = "kendall"))
tol <- 1e-12
ext_s <- sum(abs(stat_s) >= abs(obs_s) - tol)
ext_k <- sum(abs(stat_k) >= abs(obs_k) - tol)
pilot <- data.frame(
Statistic = c("Spearman", "Kendall tau-b"),
Observed = c(obs_s, obs_k),
Distinct_arrangements = n_distinct,
At_least_as_extreme = c(ext_s, ext_k),
Exact_two_sided_p = c(ext_s, ext_k) / n_distinct)
knitr::kable(pilot, digits = 4, caption = "Exact permutation tests, pilot data")
| Statistic | Observed | Distinct_arrangements | At_least_as_extreme | Exact_two_sided_p |
|---|---|---|---|---|
| Spearman | 0.7632 | 60 | 12 | 0.2 |
| Kendall tau-b | 0.6667 | 60 | 12 | 0.2 |
cat("Total permutations of positions:", n_total, "; distinct arrangements of Y:", n_distinct, "\n")
## Total permutations of positions: 120 ; distinct arrangements of Y: 60
The pilot data has 60 distinct arrangements of Y, not 120, because of the tied value 3. Spearman = 0.763 and Kendall τ-b = 0.667. For both statistics, 12 arrangements are at least as extreme, so the exact two-sided p-value is 12/60 = 0.20. You fail to reject H₀. With only five policyholders, even a fairly strong correlation is not significant.
set.seed(553)
B <- 4999
obs_s_full <- cor(x, y, method = "spearman")
obs_k_full <- cor(x, y, method = "kendall")
sim_s <- numeric(B); sim_k <- numeric(B)
for (b in seq_len(B)) {
y_perm <- sample(y) # same permutation for both statistics
sim_s[b] <- cor(x, y_perm, method = "spearman")
sim_k[b] <- cor(x, y_perm, method = "kendall")
}
b_s <- sum(abs(sim_s) >= abs(obs_s_full) - tol)
b_k <- sum(abs(sim_k) >= abs(obs_k_full) - tol)
mc <- data.frame(Statistic = c("Spearman", "Kendall tau-b"),
Observed = c(obs_s_full, obs_k_full),
b_extreme = c(b_s, b_k),
MC_p_value = c(b_s + 1, b_k + 1) / (B + 1))
knitr::kable(mc, digits = 5, caption = "Monte Carlo permutation tests (B = 4999, seed 553)")
| Statistic | Observed | b_extreme | MC_p_value |
|---|---|---|---|
| Spearman | 0.73235 | 0 | 2e-04 |
| Kendall tau-b | 0.56426 | 0 | 2e-04 |
hist(sim_s, breaks = 40, col = "lightgray", border = "white",
main = "Permutation distribution of Spearman's rs",
xlab = "Spearman's rs under random permutation")
abline(v = c(-1, 1) * abs(obs_s_full), col = "red", lwd = 2)
Your table will show the Spearman and Kendall statistics from Q1(b), with b = 0 or very close to it, because p-values near 10⁻⁹ make extreme shuffles essentially impossible. The Monte Carlo p-value is then (0 + 1)/5000 = 0.0002, the smallest value this method can give. This is consistent with Q1(c): strong evidence of association.
fit <- lm(claim_cost ~ annual_mileage, data = dat)
knitr::kable(round(summary(fit)$coefficients, 5), caption = "Coefficient estimates")
| Estimate | Std. Error | t value | Pr(>|t|) | |
|---|---|---|---|---|
| (Intercept) | 1.72238 | 0.29194 | 5.8998 | 0 |
| annual_mileage | 0.11943 | 0.01418 | 8.4228 | 0 |
b0 <- coef(fit)[1]; b1 <- coef(fit)[2]
cat(sprintf("Fitted equation: Y-hat = %.4f + %.4f X\n", b0, b1))
## Fitted equation: Y-hat = 1.7224 + 0.1194 X
The fitted equation is Ŷ = 1.722 + 0.1194X. each extra thousand km is associated with about RM 119 (0.119 thousand) more in expected annual claim cost. RM 1.72 thousand is the expected cost at zero km. This is outside the observed range (8 to 32), so treat it as an anchor for the line rather than a meaningful quantity.
e <- residuals(fit)
yhat <- fitted(fit)
SSE <- sum(e^2)
dfe <- n - 2
MSE <- SSE / dfe
RSE <- sqrt(MSE)
SST <- sum((y - mean(y))^2)
SSR <- sum((yhat - mean(y))^2)
decomp <- data.frame(Quantity = c("SSE", "MSE", "Residual SE", "Error df", "SST", "SSR", "SSR + SSE", "SST - (SSR + SSE)"),
Value = c(SSE, MSE, RSE, dfe, SST, SSR, SSR + SSE, SST - (SSR + SSE)))
knitr::kable(decomp, digits = 6, caption = "Variation decomposition")
| Quantity | Value |
|---|---|
| SSE | 41.34381 |
| MSE | 0.71282 |
| Residual SE | 0.84429 |
| Error df | 58.00000 |
| SST | 91.91416 |
| SSR | 50.57035 |
| SSR + SSE | 91.91416 |
| SST - (SSR + SSE) | 0.00000 |
all.equal(SST, SSR + SSE)
## [1] TRUE
all.equal(RSE, summary(fit)$sigma)
## [1] TRUE
SSE = 41.344 with 58 degrees of freedom, MSE = 0.7128 and the residual standard error = 0.844. A typical policyholder’s claim cost sits about RM 0.84 thousand from the line. SST = 91.914 and SSR = 50.570, and 50.570 + 41.344 = 91.914, so the identity holds.
SSR_df <- 1; MSR <- SSR / SSR_df
Fstat <- MSR / MSE
pF <- pf(Fstat, 1, dfe, lower.tail = FALSE)
R2 <- SSR / SST
anova_tab <- data.frame(
Source = c("Regression", "Error", "Total"),
SS = c(SSR, SSE, SST),
df = c(1, dfe, n - 1),
MS = c(MSR, MSE, NA),
F = c(Fstat, NA, NA),
p_value = c(pF, NA, NA))
knitr::kable(anova_tab, digits = 5, caption = "Regression ANOVA table")
| Source | SS | df | MS | F | p_value |
|---|---|---|---|---|---|
| Regression | 50.570 | 1 | 50.57035 | 70.944 | 0 |
| Error | 41.344 | 58 | 0.71282 | NA | NA |
| Total | 91.914 | 59 | NA | NA | NA |
cat(sprintf("R-squared = %.4f; adjusted R-squared = %.4f\n", R2, summary(fit)$adj.r.squared))
## R-squared = 0.5502; adjusted R-squared = 0.5424
anova(fit) # cross-check
## Analysis of Variance Table
##
## Response: claim_cost
## Df Sum Sq Mean Sq F value Pr(>F)
## annual_mileage 1 50.6 50.6 70.9 1.2e-11 ***
## Residuals 58 41.3 0.7
## ---
## Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
R² = 0.550, so mileage explains about 55% of the variation in claim cost. The F-test shows the relationship is real, but the other 45% is unexplained. It does not prove causation or good individual predictions.
ci <- confint(fit, level = 0.95)
ct <- summary(fit)$coefficients
inf <- data.frame(
Parameter = c("Intercept beta0", "Slope beta1"),
Estimate = ct[, 1], SE = ct[, 2],
t = ct[, 3], p_value = ct[, 4],
Lower95 = ci[, 1], Upper95 = ci[, 2])
inf$Decision <- ifelse(inf$p_value < alpha, "Reject H0", "Fail to reject H0")
knitr::kable(inf, digits = 5, row.names = FALSE, caption = "95% CIs and two-sided t-tests (df = 58)")
| Parameter | Estimate | SE | t | p_value | Lower95 | Upper95 | Decision |
|---|---|---|---|---|---|---|---|
| Intercept beta0 | 1.72238 | 0.29194 | 5.8998 | 0 | 1.13800 | 2.30675 | Reject H0 |
| Slope beta1 | 0.11943 | 0.01418 | 8.4228 | 0 | 0.09105 | 0.14781 | Reject H0 |
cat("t_slope^2 =", ct[2, 3]^2, " vs F =", Fstat, "\n")
## t_slope^2 = 70.944 vs F = 70.944
cat("Critical t (0.975, 58) =", qt(0.975, dfe), "\n")
## Critical t (0.975, 58) = 2.0017
Hypotheses. \(H_0:\beta_0=0\) vs \(H_1:\beta_0\ne0\); \(H_0:\beta_1=0\) vs \(H_1:\beta_1\ne0\); \(\alpha=0.05\).
Both intervals exclude zero. The slope’s t² = 70.94, which equals F, so the two tests are equivalent. Significance only shows the slope is not zero. The R² of 0.55 and the interval widths in 2(e) show how useful the model really is.
new20 <- data.frame(annual_mileage = 20)
ci20 <- predict(fit, new20, interval = "confidence", level = 0.95)
pi20 <- predict(fit, new20, interval = "prediction", level = 0.95)
cmp <- data.frame(
Interval = c("95% CI for mean response", "95% PI for new response"),
Estimate = c(ci20[, "fit"], pi20[, "fit"]),
Lower = c(ci20[, "lwr"], pi20[, "lwr"]),
Upper = c(ci20[, "upr"], pi20[, "upr"]))
cmp$Width <- cmp$Upper - cmp$Lower
knitr::kable(cmp, digits = 4, caption = "Intervals at X = 20 thousand km (RM thousand)")
| Interval | Estimate | Lower | Upper | Width |
|---|---|---|---|---|
| 95% CI for mean response | 4.111 | 3.8913 | 4.3307 | 0.4393 |
| 95% PI for new response | 4.111 | 2.4067 | 5.8152 | 3.4085 |
The mean cost for all 20,000 km drivers is well pinned down, but an individual’s cost could plausibly be anywhere from about RM 2.4 to 5.8 thousand. The prediction interval is the one that applies to an individual policyholder.
xbar <- mean(x); Sxx <- sum((x - xbar)^2)
grid <- data.frame(annual_mileage = c(8, 20, 32))
pi3 <- predict(fit, grid, interval = "prediction", level = 0.95)
ci3 <- predict(fit, grid, interval = "confidence", level = 0.95)
q3a <- data.frame(
X = grid$annual_mileage,
Dist_from_mean = grid$annual_mileage - xbar,
Fit = pi3[, "fit"],
PI_lower = pi3[, "lwr"], PI_upper = pi3[, "upr"],
PI_width = pi3[, "upr"] - pi3[, "lwr"],
CI_lower = ci3[, "lwr"], CI_upper = ci3[, "upr"],
CI_width = ci3[, "upr"] - ci3[, "lwr"])
knitr::kable(q3a, digits = 4, caption = "95% PI and CI at selected mileages (xbar shown via distance)")
| X | Dist_from_mean | Fit | PI_lower | PI_upper | PI_width | CI_lower | CI_upper | CI_width |
|---|---|---|---|---|---|---|---|---|
| 8 | -11.1 | 2.6778 | 0.9449 | 4.4108 | 3.4659 | 2.2946 | 3.0610 | 0.7665 |
| 20 | 0.9 | 4.1110 | 2.4067 | 5.8152 | 3.4085 | 3.8913 | 4.3307 | 0.4393 |
| 32 | 12.9 | 5.5442 | 3.8012 | 7.2871 | 3.4859 | 5.1179 | 5.9704 | 0.8524 |
cat("Sample mean mileage =", round(xbar, 3), "; Sxx =", round(Sxx, 3), "\n")
## Sample mean mileage = 19.1 ; Sxx = 3545.4
# Visual: bands over the observed range
xs <- data.frame(annual_mileage = seq(min(x), max(x), length.out = 100))
pb <- predict(fit, xs, interval = "prediction"); cb <- predict(fit, xs, interval = "confidence")
plot(x, y, pch = 19, col = "steelblue", xlab = "Annual mileage (thousand km)",
ylab = "Annual claim cost (RM thousand)", main = "Fitted line with 95% confidence and prediction bands")
lines(xs$annual_mileage, pb[, "fit"], col = "red", lwd = 2)
lines(xs$annual_mileage, cb[, "lwr"], col = "darkgreen", lty = 2); lines(xs$annual_mileage, cb[, "upr"], col = "darkgreen", lty = 2)
lines(xs$annual_mileage, pb[, "lwr"], col = "orange", lty = 3); lines(xs$annual_mileage, pb[, "upr"], col = "orange", lty = 3)
legend("topleft", c("Fit", "95% CI (mean)", "95% PI (new)"), col = c("red", "darkgreen", "orange"),
lty = c(1, 2, 3), lwd = c(2, 1, 1), bty = "n")
The sample mean is 19.1, so the interval is narrowest near 20 and widest at 8 and 32. The PI widths differ only slightly, because the individual-variation term (the “1”) dominates. The CI widths vary much more (0.44 versus 0.85), because they contain only the estimation-uncertainty term. A single margin for everyone ignores this pattern, and the PIs are always much wider than the CIs.
fit0 <- lm(claim_cost ~ 0 + annual_mileage, data = dat)
SSE0 <- sum(residuals(fit0)^2)
R2_R0 <- summary(fit0)$r.squared # uncentered (R's no-intercept R2)
R2_cent0 <- 1 - SSE0 / SST # centered analogue, for comparison only
SST_unc <- sum(y^2)
cmp0 <- data.frame(
Model = c("Conventional SLR", "Through origin"),
Slope = c(b1, coef(fit0)[1]),
Intercept = c(b0, 0),
SSE = c(SSE, SSE0),
Error_df = c(n - 2, n - 1),
MSE = c(SSE / (n - 2), SSE0 / (n - 1)),
R2_reported_by_R = c(summary(fit)$r.squared, R2_R0))
knitr::kable(cmp0, digits = 5, row.names = FALSE, caption = "Conventional vs no-intercept model")
| Model | Slope | Intercept | SSE | Error_df | MSE | R2_reported_by_R |
|---|---|---|---|---|---|---|
| Conventional SLR | 0.11943 | 1.7224 | 41.344 | 58 | 0.71282 | 0.55019 |
| Through origin | 0.19704 | 0.0000 | 66.156 | 59 | 1.12128 | 0.93721 |
cat(sprintf("Uncentered denominator sum(y^2) = %.3f vs centered SST = %.3f\n", SST_unc, SST))
## Uncentered denominator sum(y^2) = 1053.595 vs centered SST = 91.914
cat(sprintf("No-intercept centered-analogue R2 = 1 - SSE0/SST = %.4f\n", R2_cent0))
## No-intercept centered-analogue R2 = 1 - SSE0/SST = 0.2802
plot(x, y, pch = 19, col = "steelblue", xlim = c(0, max(x)), ylim = c(0, max(y)),
xlab = "Annual mileage (thousand km)", ylab = "Annual claim cost (RM thousand)",
main = "Conventional and through-origin fits")
abline(fit, col = "red", lwd = 2); abline(fit0, col = "purple", lwd = 2, lty = 2)
legend("topleft", c("Conventional SLR", "Through origin"), col = c("red", "purple"), lty = c(1, 2), lwd = 2, bty = "n")
The through-origin slope is 0.197, against 0.119 for the conventional model. Its SSE is 66.156, against 41.344, so the fit is much worse. R reports an R² of about 0.937 for the no-intercept model, which looks better but uses Σy² as the denominator. On the centred scale it is 1 − 66.156/91.914 = 0.280, which is lower than 0.550. The two R² values cannot be compared directly. The intercept was significantly different from zero (confidence interval 1.14 to 2.31, p ≈ 2 × 10⁻⁷), so forcing it to zero is not justified. Also, zero-mileage cars can still generate claims such as theft or fire.
# Supporting numbers for point (iii): prediction at X = 50 (extrapolation)
predict(fit, data.frame(annual_mileage = 50), interval = "prediction", level = 0.95)
## fit lwr upr
## 1 7.6939 5.7774 9.6104
c(observed_min = min(x), observed_max = max(x))
## observed_min observed_max
## 8 32
sessionInfo()
## R version 4.4.0 (2024-04-24 ucrt)
## Platform: x86_64-w64-mingw32/x64
## Running under: Windows 11 x64 (build 26200)
##
## Matrix products: default
##
##
## locale:
## [1] LC_COLLATE=English_Malaysia.utf8 LC_CTYPE=English_Malaysia.utf8
## [3] LC_MONETARY=English_Malaysia.utf8 LC_NUMERIC=C
## [5] LC_TIME=English_Malaysia.utf8
##
## time zone: Asia/Kuala_Lumpur
## tzcode source: internal
##
## attached base packages:
## [1] stats graphics grDevices utils datasets methods base
##
## loaded via a namespace (and not attached):
## [1] digest_0.6.39 R6_2.6.1 fastmap_1.2.0 xfun_0.57
## [5] cachem_1.1.0 knitr_1.51 htmltools_0.5.9 rmarkdown_2.31
## [9] lifecycle_1.0.5 cli_3.6.6 sass_0.4.10 jquerylib_0.1.4
## [13] compiler_4.4.0 rstudioapi_0.18.0 tools_4.4.0 evaluate_1.0.5
## [17] bslib_0.10.0 yaml_2.3.12 rlang_1.2.0 jsonlite_2.0.0