“regresión logística en r” Código de respuesta

curva de regresión logística ajustado r

fit = glm(vs ~ hp, data=mtcars, family=binomial)
newdat <- data.frame(hp=seq(min(mtcars$hp), max(mtcars$hp),len=100))
newdat$vs = predict(fit, newdata=newdat, type="response")
plot(vs~hp, data=mtcars, col="red4")
lines(vs ~ hp, newdat, col="green4", lwd=2)
Expensive Eagle

regresión logística en r

mdl_churn_vs_both_inter <- glm(has_churned ~ time_since_first_purchase * time_since_last_purchase, data = churn, family = binomial)
Successful Salmon

Respuestas similares a “regresión logística en r”

Preguntas similares a “regresión logística en r”

Más respuestas relacionadas con “regresión logística en r” en R

Explore las respuestas de código populares por idioma

Explorar otros lenguajes de código