Learn R Programming

BGGM (version 1.0.0)

fitted.estimate: Fitted Values for estimate Objects

Description

Fitted Values for estimate Objects

Usage

# S3 method for estimate
fitted(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)

# fitted values
fitted(fit, iter = 25)
# }

Run the code above in your browser using DataLab