residuals_reest: Residuals of Re-estimated Model

Description Usage Arguments Details Value See Also Examples

View source: R/residuals.R

Description

Function to extract the residuals of the re-estimated model. resid_reest is an alias for it.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
residuals_reest(object, ...)

## S3 method for class 'glmsmurf'
residuals_reest(
  object,
  type = c("deviance", "pearson", "working", "response", "partial"),
  ...
)

resid_reest(object, ...)

## S3 method for class 'glmsmurf'
resid_reest(
  object,
  type = c("deviance", "pearson", "working", "response", "partial"),
  ...
)

Arguments

object

An object for which the extraction of model residuals is meaningful. E.g. an object of class 'glmsmurf', typically the result of a call to glmsmurf or glmsmurf.fit.

...

Additional arguments which are currently ignored.

type

Type of residuals that should be returned. One of "deviance" (default), "pearson", "working", "response" or "partial".

Details

See glm.summaries for an overview of the different types of residuals.

Value

A vector containing the residuals of the re-estimated model in object when they are available, or, otherwise, the residuals of the estimated model in object with a warning.

See Also

residuals.glmsmurf, residuals, glm.summaries, glmsmurf-class

Examples

1
2
## See example(glmsmurf) for examples
 

BavoDC/ssmurf documentation built on Dec. 17, 2021, 10:46 a.m.