pmf_subject: Poisson Matrix Factorization (using subject information)

Description Usage Arguments Value

View source: R/pmf_subject.R

Description

Poisson Matrix Factorization (using subject information)

Usage

1
pmf_subject(X, u, K, init = NULL, maxiter = 100, verbose = FALSE, seed = 123)

Arguments

X

count matrix (dim(X) = c(n, p)).

u

vector encoding subject (length(u) = n; elements need to be from 1,..., length(unique(u))).

K

number of topics

init

Either NULL or list(L, F)

seed

only used when init is NULL

Value

list(L, F, log_liks)


stephenslab/ebpmf documentation built on Nov. 20, 2021, 10:55 a.m.