BIC: Determine parameters of scPADGRN model using Bayesion...

Description Usage Arguments Value Examples

View source: R/BIC.R

Description

Determine parameters of scPADGRN model using Bayesion information criterion.

Usage

1
BIC(Y, eps, Lambda)

Arguments

Y

Cluster-level data, a list of matrix, stand for gene expression data at different time points.

eps

Threshold, controls "Dim" function in objective function of BIC optimization problem.

Lambda

Candidates for parameter selection, a vector that contains different value.

Value

Bi

a matrix, each entry is objective value of BIC optimizaiton problem for different alphas and betas

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
##---- Should be DIRECTLY executable !! ----
##-- ==>  Define data, use random,
##--	or do  help(data=index)  for the standard data sets.

## The function is currently defined as
function (Y, eps, Lambda)
{
    lenL <- length(Lambda)
    N <- length(Y)
    Bi <- matrix(0, lenL, lenL)
    for (i in c(1:lenL)) {
        for (j in c(1:lenL)) {
            A <- preADMM(N, Y, Lambda[i], Lambda[j], 0.01)
            A <- A[[1]]
            Bi[i, j] <- BI(Y, A, Lambda[i], Lambda[j], eps)
        }
    }
    return(Bi)
  }

xzheng-ac/scPADGRN documentation built on July 26, 2020, 12:41 a.m.