Learn R Programming

psychtm (version 2021.1.0)

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

Description

Create generic lpd<- function for class

Usage

lpd(x) <- value

Arguments

x

An Model object.

value

Numeric matrix of log predictive densities in each document to assign to slot.

Value

None.

Examples

Run this code
# NOT RUN {
m1 <- Model(ndocs = 1)
lpd(m1) <- matrix(NaN, nrow = 1, ncol = 1)
# }

Run the code above in your browser using DataLab