Description Details Slots See Also Examples
dgirt
returns a fitted model object of class dgirt_fit
,
which inherits from dgo_fit
.
dgo 0.2.8 deprecated the dgirtfit
class and replaced it with the
dgirt_fit
class.
dgirt_in
dgirtin-class
data used to fit the model.
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'))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.