Learn R Programming

BGGM (version 1.0.0)

residuals.estimate: Residuals for estimate Objects

Description

Residuals for estimate Objects

Usage

# S3 method for estimate
residuals(object, iter = 500, cred = 0.95, summary = TRUE, ...)

Arguments

object

object of class estimate

iter

iters used to compute the residuals

cred

credible interval used for summarizing

summary

summarize the posterior samples (Default is TRUE).

...

currently ignored

Value

3D array of dimensions n (observations), 4 (posterior summary), p (number of nodes)

Examples

Run this code
# NOT RUN {
# data
Y <- subset(tas, gender == "M")[,-ncol(tas)]

# fit model
fit <- estimate(Y)

# diagnostic plot
residuals(fit, iter = 25)
# }

Run the code above in your browser using DataLab