predict.glm help file.pdf - predict.glm cfw_stats R Documentation Predict Method for GLM Fits Description Obtains predictions and optionally estimates

predict.glm help file.pdf - predict.glm cfw_stats R...

This preview shows page 1 - 2 out of 3 pages.

predict.glm {stats}R DocumentationPredict Method for GLM FitsDescriptionObtains predictions and optionally estimates standard errors of those predictions from a fittedgeneralized linear model object.Usage## S3 method for class 'glm'predict(object, newdata = NULL,type = c("link", "response", "terms"),se.fit = FALSE, dispersion = NULL, terms = NULL,na.action = na.pass, ...)Argumentsobjecta fitted object of class inheriting from "glm".newdataoptionally, a data frame in which to look for variables with which to predict. Ifomitted, the fitted linear predictors are used.typethe type of prediction required. The default is on the scale of the linear predictors;the alternative "response"is on the scale of the response variable. Thus for adefault binomial model the default predictions are of log-odds (probabilities onlogit scale) and type = "response"gives the predicted probabilities. The"terms"option returns a matrix giving the fitted values of each term in themodel formula on the linear predictor scale.

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture