Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
a
  • Loading branch information
dadosdelaplace committed Jan 21, 2025
1 parent 2ce5c6c commit 4ac5a3e
Show file tree
Hide file tree
Showing 898 changed files with 313,260 additions and 1 deletion.
Binary file modified .DS_Store
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
27 changes: 27 additions & 0 deletions biostats-ISCIII/diapos/Sin título.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@

library(tidyverse)
datos <- read_csv(file = "./datos/wine.csv")
datos

# 1. Visualiza tu variable objetivo (Price)
ggplot(datos) +
geom_boxplot(aes(x = Price)) +
theme_minimal()
# 2. De todas las posibles predictoras (X),
# si solo pudieses usar una para una reg. lineal
# ¿cuál usarías y por qué? (piensa antes si alguna variable sobra)
datos |>
select(where(is.numeric)) |>
cor()
# 3. La que decidas usar, visualiza X vs Y. Cuantifica su
# posible asociación lineal.
ggplot(datos) +
geom_point(aes(x = AGST, y = Price)) +
theme_minimal()
library(GGally)
GGally::ggpairs(datos)

cor.test(datos$AGST, datos$Price)
# 4. haz una ajuste lineal univariante e interpreta
ajuste_lineal <- lm(data = datos, formula = Price ~ -1 + AGST)
ajuste_lineal |> summary()
Loading

0 comments on commit 4ac5a3e

Please sign in to comment.