Sync portfolio laboratory source
This commit is contained in:
commit
de1d43466d
5 changed files with 92 additions and 0 deletions
40
dashboard.qmd
Normal file
40
dashboard.qmd
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
---
|
||||
title: "Логистическая регрессия"
|
||||
lang: ru
|
||||
format: dashboard
|
||||
execute:
|
||||
echo: false
|
||||
---
|
||||
|
||||
```{r}
|
||||
source("analysis.R", local = TRUE)
|
||||
```
|
||||
|
||||
# Результаты
|
||||
|
||||
## Row
|
||||
|
||||
### График
|
||||
|
||||
```{r}
|
||||
x <- result$threshold
|
||||
y <- result$sensitivity
|
||||
if (is.numeric(x)) {
|
||||
plot(x, y, xlab = "threshold", ylab = "sensitivity", pch = 19, col = "#245d76")
|
||||
} else {
|
||||
par(mar = c(7, 4, 2, 1))
|
||||
barplot(y, names.arg = x, ylab = "sensitivity", las = 2, col = "#245d76")
|
||||
}
|
||||
```
|
||||
|
||||
### Таблица
|
||||
|
||||
```{r}
|
||||
knitr::kable(result, digits = 3)
|
||||
```
|
||||
|
||||
## Row
|
||||
|
||||
### Как читать результат
|
||||
|
||||
Логит моделирует log(p/(1−p)). Чувствительность и специфичность меняются с порогом. Их оценивают на данных вне обучающей выборки.
|
||||
Loading…
Add table
Add a link
Reference in a new issue