Description Usage Arguments Value Examples
Determine parameters of scPADGRN model using Bayesion information criterion.
1 | BIC(Y, eps, Lambda)
|
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. |
Bi |
a matrix, each entry is objective value of BIC optimizaiton problem for different alphas and betas |
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)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.