PLN-team / PLNmodels

A collection of Poisson lognormal models for multivariate count data analysis
https://pln-team.github.io/PLNmodels
GNU General Public License v3.0
54 stars 18 forks source link

dgCMatrix as an input #96

Closed akhst7 closed 1 year ago

akhst7 commented 1 year ago

Hi,

Is there any way to use a dgCMatrix without converting to matrix or data.frame as an input for PLNPCA

mahendra-mariadassou commented 1 year ago

Hi,

Sorry for the long delay in responding. There is currently no way to do this as we rely on model.frame() to provide a formula interface to the end-user. The simplest fix is to convert the dgCMatrix to a standard matrix as you do now.