Description Usage Arguments Value Examples
View source: R/ebpmf_wbg2_subject.R
Empirical Bayes Poisson Matrix Factorization (Background Model with weights, using subject information)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
X |
count matrix (dim(X) = c(n, p)). |
u |
vector encoding subject (length(u) = n; elements need to be from 1,..., length(unique(u))). |
pm_func |
functions for solving the |
init |
Either |
pm_control |
control parameters for pm_func function |
fix_option |
list(m, gl, ql, gf, qf) where each is either TRUE or FALSE |
maxiter |
maximum number of iterations |
tol |
stopping tolerance for ELBO |
seed |
used when init is NULL |
k |
number of topics |
A list containing elements:
m
list of "mean" and "mean_log", "g", "kl"; "mean" and "mean_log" are each a p by D background frequency matrix
qg
list(ql, gl,qf, gf)
ELBO
ELBO objective for this VEB algorithm
1 | To add
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.