predict.gpcr: Predict Method for gpcr Fits

Description Usage Arguments Value

View source: R/gpcr.R

Description

Predict Method for gpcr Fits

Usage

1
2
## S3 method for class 'gpcr'
predict(fit, newdata = NULL, type = c("link", "response"))

Arguments

fit

a fitted object of class "gpcr"

newdata

optionally, a data frame in which to look for variables with which to predict. If omitted, the fitted linear predictors are used.

type

the 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 a default binomial model the default predictions are of log-odds (probabilities on logit scale) and type = "response" gives the predicted probabilities.

Value

a vector of predictions


abnormally-distributed/cvreg documentation built on May 3, 2020, 3:45 p.m.