new.spear: Make a SPEARobject. Will return an R6 class SPEARobject used...

View source: R/3_SPEARobject.R

new.spearR Documentation

Make a SPEARobject. Will return an R6 class SPEARobject used for the "SPEAR" package.

Description

Make a SPEARobject. Will return an R6 class SPEARobject used for the "SPEAR" package.

Usage

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
)

Arguments

X

Assay matrix.


jgygi/SPEAR documentation built on July 5, 2023, 5:35 p.m.