Description Usage Arguments Value Author(s) See Also Examples
This function extract the information regarding one solution of the Weighted Likelihood Estimating Equation.
1 2 | ## S3 method for class 'wle.glm'
extractRoot(object, root=1, ...)
|
object |
an object of class |
root |
an integer number to specify which root should be extract. |
... |
further arguments passed to or from other methods. |
extract.wle.glm
returns an object of class "extract.wle.glm.root"
, a (variable length) list
containing at least the following components:
coefficients |
a named vector of coefficients |
residuals |
the working residuals, that is the residuals
in the final iteration of the IWLS fit. Since cases with zero
weights are omitted, their working residuals are |
fitted.values |
the fitted mean values, obtained by transforming the linear predictors by the inverse of the link function. |
rank |
the numeric rank of the fitted linear model. |
family |
the |
linear.predictors |
the linear fit on link scale. |
deviance |
up to a constant, minus twice the maximized log-likelihood. Where sensible, the constant is chosen so that a saturated model has deviance zero. |
aic |
Akaike's An Information Criterion, minus twice the maximized log-likelihood plus twice the number of coefficients (so assuming that the dispersion is known). |
null.deviance |
The deviance for the null model, comparable with
|
iter |
the number of iterations of IWLS used. |
weights |
the working weights, that is the weights in the final iteration of the IWLS fit. |
prior.weights |
the weights initially supplied, a vector of
|
df.residual |
the residual degrees of freedom. |
df.null |
the residual degrees of freedom for the null model. |
y |
if requested (the default) the |
x |
if requested, the model matrix. |
model |
if requested (the default), the model frame. |
converged |
logical. Was the IWLS algorithm judged to have converged? |
boundary |
logical. Is the fitted value on the boundary of the attainable values? |
wle.weights |
final (robust) weights based on the WLE approach. |
wle.asymptotic |
logicals. If |
In addition, non-empty fits will have components qr
,
R
, qraux
, pivot
and effects
relating to the final weighted linear fit.
family |
the |
call |
the matched call. |
formula |
the formula supplied. |
terms |
the |
data |
the |
offset |
the offset vector used. |
control |
the value of the |
method |
the name of the fitter function used, currently always
|
contrasts |
(where relevant) the contrasts used. |
xlevels |
(where relevant) a record of the levels of the factors used in fitting. |
tot.sol |
the number of solutions found. |
not.conv |
the number of starting points that does not converge after the |
na.action |
(where relevant) information returned by
|
If a binomial
wle.glm
model was specified by
giving a two-column response, the weights returned by
prior.weights
are
the total numbers of cases (factored by the supplied case weights) and
the component y
of the result is the proportion of successes.
Claudio Agostinelli and Fatemah Al-quallaf
1 2 3 | ## --- Continuing the Example from '?wle.glm':
anova(extractRoot(wle.glm.D93))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.