sim_from_params: Simulate (ZI)-NMF data from theta, beta, and inflation...

Description Usage Arguments Value

View source: R/sim.R

Description

Simulate (ZI)-NMF data from theta, beta, and inflation parameters

Usage

1
sim_from_params(theta, beta, zero_inf_prob = 0)

Arguments

theta

[matrix] An N x K matrix of scores

beta

[matrix] A V x K matrix of factors

zero_inf_prob

[numeric] The amount of zero inflation; i.e., the proportion in [0, 1] that will be set to zero.

Value

y [matrix] The N x V matrix of observed (potentially zero-inflated counts).


krisrs1128/nmfSim documentation built on May 20, 2019, 1:30 p.m.