residuals,inla-method | R Documentation |
Calculate the Residuals From an INLA Model
## S4 method for signature 'inla' residuals( object, type = c("pearson", "deviance", "working", "response", "partial"), ... )
object |
An |
type |
Currently only Pearson residuals are available.
Other types are only listed for compatibility with the default |
... |
Currently ignored. |
Other statistics:
dispersion()
,
fitted,inla-method
,
get_observed()
library(INLA) set.seed(20181202) model <- inla( poisson ~ 1, family = "poisson", data = data.frame( poisson = rpois(20, lambda = 10), base = 1 ), control.predictor = list(compute = TRUE) ) residuals(model)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.