Learn R Programming

dgo (version 0.2.15)

dgirt_fit-class: A class for fitted dynamic group IRT models

Description

dgirt returns a fitted model object of class dgirt_fit, which inherits from dgo_fit.

Arguments

Slots

dgirt_in

dgirtin-class data used to fit the model.

Details

dgo 0.2.8 deprecated the dgirtfit class and replaced it with the dgirt_fit class.

See Also

dgmrp_fit dgo_fit

Examples

Run this code
# NOT RUN {
data(toy_dgirtfit)
# summarize the fitted results
summary(toy_dgirtfit, pars = 'xi')

# get posterior means with a convenience function
get_posterior_mean(toy_dgirtfit, pars = 'theta_bar')

# generally apply functions to posterior samples after warmup; n.b.
# `as.array` is iterations x chains x parameters so `MARGIN = 3` applies
# `FUN` over iterations and chains
apply(as.array(toy_dgirtfit, pars = 'xi'), 3, mean)

# access the posterior samples
head(as.data.frame(toy_dgirtfit, pars = 'theta_bar'))
# }

Run the code above in your browser using DataLab