powered by
glm
glm(data, formula, ...)# S3 method for glm predict(object, data, ...)
# S3 method for glm predict(object, data, ...)
formula
fit <- glm(mtcars, vs ~ hp + wt, family = binomial()) summary(fit) predict(fit, mtcars[1:5,]) # Help page for function being twiddled ?stats::glm
Run the code above in your browser using DataLab