model_set_FAST: Set parameters for FAST model

View source: R/main.R

model_set_FASTR Documentation

Set parameters for FAST model

Description

Prepare parameters setup for FAST model fitting.

Usage

model_set_FAST(
  maxIter = 30,
  epsLogLik = 1e-05,
  error_heter = TRUE,
  Psi_diag = FALSE,
  verbose = TRUE,
  seed = 1
)

Arguments

maxIter

the maximum iteration of ICM-EM algorithm. The default is 30.

epsLogLik

an optional positive vlaue, tolerance of relative variation rate of the observed pseudo loglikelihood value, defualt as '1e-5'.

error_heter

a logical value, whether use the heterogenous error for FAST model, default as TRUE. If error.heter=FALSE, then the homogenuous error is used.

Psi_diag

a logical value, whether set the conditional covariance matrices of intrisic CAR to diagonal, default as FALSE

verbose

a logical value, whether output the information in iteration.

seed

a postive integer, the random seed to be set in initialization.

Value

return a Seurat object with new reduction (named reduction.name) added to the 'reductions' slot.

Examples

model_set_FAST(maxIter = 30, epsLogLik = 1e-5,
  error_heter=TRUE, Psi_diag=FALSE, verbose=TRUE, seed=2023)


ProFAST documentation built on May 29, 2024, 7:15 a.m.