| glm.best | R Documentation |
Description: glm.best is used to fit generalized linear model for the best model provided by modelselect.glm.
glm.best(
object,
family,
method = "models",
threshold = 0.95,
x = FALSE,
y = FALSE
)
object |
the model selection result from |
family |
a character string naming a family function describing the error distribution to be used in the model. |
method |
the criteria to do model select.
|
threshold |
The threshold for variable selection. The variables with posterior inclusion probability larger than the threshold are selected in the best model. The default is 0.95. |
x, y |
logicals. If |
An object of class "glm", which is a list containing the following components:
coefficientsa named vector of coefficients.
residualsthe working residuals, that is the residuals in the final iteration of the IWLS fit.
fitted.valuesthe fitted mean values, obtained by transforming the linear predictors by the inverse of the link function.
rankthe numeric rank of the fitted linear model.
familythe family object used.
linear.predictorsthe linear fit on the link scale.
devianceup to a constant, minus twice the maximized log-likelihood.
aicA version of Akaike's An Information Criterion, minus twice the maximized log-likelihood plus twice the number of parameters, computed by the aic component of the family.
null.devianceThe deviance for the null model, comparable with deviance. The null model will include the offset, and an intercept if there is one in the model.
iterthe number of iterations of IWLS used.
weightsthe working weights, that is the weights in the final iteration of the IWLS fit.
prior.weightsthe weights initially supplied, a vector of 1s if none were.
df.residualthe residual degrees of freedom.
df.nullthe residual degrees of freedom for the null model.
yif requested, the response vector used.
convergedlogical. Was the IWLS algorithm judged to have converged?
boundarylogical. Is the fitted value on the boundary of the allowable values?
modelif requested (the default), the model frame used.
callthe matched call.
formulathe formula supplied.
termsthe terms.object used.
datathe data argument.
thresholdthe threshold used for method = "variables".
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.