Description Usage Arguments Details Value Author(s) Examples
To conduct a cross validation for Zero Inflated Poisson factor analysis to find the number of factors.
1 2 3 |
X |
The matrix to be decomposed. |
k |
A vector containing the number of factors to try. |
fold |
The number of folds used in cross validation. |
tau |
Initial tau value to fit. Will be overwritten by the first value in |
cut |
To delete columns that has more than 100(' |
tolLnlikelihood |
The max percentage of log likelihood differences in two iterations. |
iter |
Max iterations. |
initialtau |
A character specifying the way to choose the initial value of tau at the beginning of EM iteration. |
tol |
Percentage of l2 norm change of [tau beta]. |
maxiter |
Max iteration number in the zero inflated poisson regression. |
Madj |
If TRUE then adjust for relative library size M. |
display |
If TRUE display the fitting procedure. |
parallel |
Use |
The function conducts cross validation on the zero-inflated Poisson factor analysis to determine the rank.
The function returns a matrix. Each row the CV likelihood of one fold. Each column is the result of number of factors in k
.
Tianchen Xu
1 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.