Learn R Programming

psychtm (version 2021.1.0)

beta_<-: Create generic beta_<- function for class

Description

Create generic beta_<- function for class

Usage

beta_(x) <- value

Arguments

x

An Sldax object.

value

Numeric array of topic-word probabilities to assign to slot.

Value

None.

Examples

Run this code
# NOT RUN {
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)))
beta_(m1) <- array(c(0.5, 0.5, 0.5, 0.5), dim = c(2, 2, 1))
# }

Run the code above in your browser using DataLab