lab-03/dashboard.qmd

40 lines
874 B
Text
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
title: "Доверительный интервал Уэлча"
lang: ru
format: dashboard
execute:
echo: false
---
```{r}
source("analysis.R", local = TRUE)
```
# Результаты
## Row
### График
```{r}
x <- result$statistic
y <- result$difference
if (is.numeric(x)) {
plot(x, y, xlab = "statistic", ylab = "difference", pch = 19, col = "#245d76")
} else {
par(mar = c(7, 4, 2, 1))
barplot(y, names.arg = x, ylab = "difference", las = 2, col = "#245d76")
}
```
### Таблица
```{r}
knitr::kable(result, digits = 3)
```
## Row
### Как читать результат
Уэлч оценивает стандартную ошибку разницы как корень из суммы s₁²/n₁ и s₂²/n₂ и применяет t-распределение с поправкой на неодинаковые дисперсии.