sample_sigmasq {ddtlcm} | R Documentation |
Sample item group-specific variances through Gibbs sampler
Description
Sample item group-specific variances through Gibbs sampler
Usage
sample_sigmasq(shape0, rate0, dist_mat, item_membership_list, locations)
Arguments
shape0 |
a vector of G elements, each being the shape of the Inverse-Gamma prior of group g |
rate0 |
a vector of G elements, each being the rate of the Inverse-Gamma prior of group g |
dist_mat |
a list, containing the KxK tree-structured matrix of leaf nodes, where K is the number of leaves / latent classes, and SVD components |
item_membership_list |
a vector of G elements, each indicating the number of items in this group |
locations |
a KxJ matrix of leaf parameters |
Value
a numeric vector of G elements, each being the newly sampled variance of the latent location of this group
[Package ddtlcm version 0.2.1 Index]