View source: R/methods_predict.R
predict.beset | R Documentation |
beset
ObjectsPredict Methods for beset
Objects
## S3 method for class 'beset'
predict(
object,
newdata,
type = "response",
newoffset = NULL,
alpha = NULL,
lambda = NULL,
n_pred = NULL,
metric = "auto",
oneSE = TRUE,
na.action = na.pass,
tt = NULL,
...
)
object |
A |
newdata |
An optional data frame in which to look for variables with which to predict. If omitted, the fitted values are used. |
type |
Type of prediction required. Type "link" gives the linear predictors for "binomial" and "poisson" models; for "gaussian" models it gives the fitted values. Type "response" gives the fitted probabilities for "binomial", fitted mean for "poisson", and fitted values for "gaussian". Type "coefficients" computes the coefficients. Note that for "binomial" models, results are returned only for the class corresponding to the second level of the factor response. Type "class" applies only to "binomial" models, and produces the class label corresponding to the maximum probability. Type "nonzero" returns a list of the indices of the nonzero coefficients. |
newoffset |
If an offset is used in the fit, then one must be supplied
for making predictions (except for |
alpha |
(Optional) |
lambda |
(Optional) |
n_pred |
(Optional) |
metric |
|
oneSE |
|
na.action |
function determining what should be done with missing
values in |
... |
further arguments passed to or from other methods. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.