View source: R/3_SPEARobject.R
new.spear | R Documentation |
Make a SPEARobject. Will return an R6 class SPEARobject used for the "SPEAR" package.
new.spear(
data = NULL,
response = NULL,
use.ordinal = FALSE,
weights.case = NULL,
weights.x = NULL,
weights.y = NULL,
num.factors = 5,
inits.type = "pca",
inits.post.mu = NULL,
sparsity.upper = 0.5,
warm.up = 100,
max.iter = 1000,
thres.elbo = 0.01,
thres.count = 5,
thres.factor = 1e-08,
print.out = 100,
seed = 123,
num.folds = 5,
num.cores = NULL,
a0 = NULL,
b0 = NULL,
a1 = NULL,
b1 = NULL,
a2 = NULL,
b2 = NULL,
L1 = NULL,
L2 = NULL,
robust.eps = NULL,
quiet = FALSE
)
X |
Assay matrix. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.