Select the number of factors and the rank of coefficient matrix in the covariate-augmented overdispersed Poisson factor model
a count matrix, the observed count matrix.
an optional matrix, the covariate matrix; default as a full-one column vector if there is no additional covariates.
an optional vector, the normalization factor for each unit; default as full-one vector.
an optional string, specify the upper bound for the number of factors; default as 15.
an optional integer, specify the upper bound for the rank of the regression coefficient matrix; default as 24.
an optional 2-dimensional positive vector, specify the the thresholds that filters the singular values of beta and B, respectively.
a logical value, whether output the information in iteration.
the maximum iteration of the VEM algorithm. The default is 30.
a logical value, whether use the joint optimization method to update bbeta. The default is FALSE
, which means using the separate optimization method.
a logical value, whether use the fast SVD algorithm in the update of bbeta; default is TRUE
.
return a named vector with names `hr` and `hq`, the estimated rank and number of factors.
The threshold is to filter the singular values with low signal, to assist the identification of underlying model structure.
None