gamma_-set: Create generic gamma_<- function for class

Description Usage Arguments Value Examples

Description

Create generic gamma_<- function for class

Usage

1
gamma_(x) <- value

Arguments

x

An Sldax object.

value

Numeric parameter for symmetric Dirichlet prior on topic-word probabilities to assign to slot.

Value

None.

Examples

1
2
3
4
5
m1 <- Sldax(ndocs = 1, nvocab = 2,
            topics = array(c(1, 2, 2, 1), dim = c(1, 4, 1)),
            theta = array(c(0.5, 0.5), dim = c(1, 2, 1)),
            beta = array(c(0.5, 0.5, 0.5, 0.5), dim = c(2, 2, 1)))
gamma_(m1) <- 1.0

ktw5691/psychtm documentation built on Nov. 3, 2021, 9:10 a.m.