Learn R Programming

BGGM (version 1.0.0)

diagnostics: Regression Diagnostic Plots for estimate Objects

Description

GGMs have a direct correspondence to multiple regression. Hence this function provides diagnostic plots for inspecting the fitted regression models. This allows for visually inspecting assumptions of the model (e.g., normality of the residuals, etc.)

Usage

diagnostics(object, iter = 500, ...)

Arguments

object

object of class estimate

iter

iterations used for computing residuals and fitted values

...

currently ignored

Value

list of ggplot objects (a plot for each node)

Examples

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

# fit model
fit <- estimate(Y)

# diagnostic plot (iter = 10 as an example)
diagnostics(fit, iter = 10)
# }

Run the code above in your browser using DataLab