plot_residuals: Plot residuals

Description Usage Arguments Value

View source: R/plot-residuals.r

Description

Save residual plots from a jaggernaut jags_analysis object to a pdf file.

Usage

1
2
3
plot_residuals(object, model = 1, parm_residual = "residual",
  parm_fitted = "prediction", name = "residuals", derived_code = NULL,
  random_effects = NULL, level = "current", data = NULL, ...)

Arguments

object

a jags_analysis object.

model

a count or flag specifying the model to select.

parm_residual

a character element naming the residuals parameter.

parm_fitted

a character element naming the fitted parameter.

name

a character scalar naming the file.

derived_code

a character element defining a block in the JAGS dialect of the BUGS language that defines one or more derived parameters for each row of data. If NULL derived_code is as defined by the JAGS model for which the JAGS analysis was performed.

random_effects

a named list which specifies which parameters to treat as random variables. If NULL random is as defined by the JAGS model for which the JAGS analysis was performed.

level

a numeric scalar specifying the significance level or a character scalar specifying which mode the level should be taken from. By default the level is as currently specified by opts_jagr in the global options.

data

the dataset for which to calculate the residuals. By default data is NULL as the residuals are typically calculated on the original dataset.

...

further arguments passed to or from other methods.

Value

Save plots to a pdf file.


poissonconsulting/poiscon documentation built on Feb. 18, 2021, 11:16 p.m.