fit_model: Fit a generic NMF Stan Model

Description Usage Arguments Value

View source: R/fit.R

Description

This wraps vb() and stan() in the STAN package to let us run either approach using a single command.

Usage

1
fit_model(y, model_opts = list())

Arguments

y

[matrix] The data on which to fit the NMF model.

model_opts

[list] A partially filled list of model fitting options. Unspecified options will be passed into merge_model_opts().

Value

result [stan object] The fitted stan object.


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