Professional Documents
Culture Documents
Ejercicio Mars (R) para Entregar
Ejercicio Mars (R) para Entregar
Ejercicio Mars (R) para Entregar
library(broom)
f2 <- function(x){
f_x = f2(x),
y = f_x + epsilon
#ejercicio
ggplot(aes(x=x)) +
geom_point(aes(y=y)) +
exercise
augment() %>%
mutate(df=10) %>%
ggplot(aes(x=x)) +
geom_point(aes(y=y)) +
geom_line(aes(y=.fitted))
stat_function(fun = f2) +
truth