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

Description Details Slots See Also Examples

Description

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

Details

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

Slots

dgirt_in

dgirtin-class data used to fit the model.

See Also

dgmrp_fit dgo_fit

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
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'))

jamesdunham/dgirt documentation built on May 18, 2019, 11:19 a.m.