TensorTest2D: Fitting Generalized Linear Models with Matrix Covariates

Ping Yang Chen, Hsing Ming Chang, Yu Ting Chen, Jung Ying Tzeng, Sheng Mao Chang

Research output: Contribution to journalArticlepeer-review


The TensorTest2D package provides the means to fit generalized linear models on secondorder tensor type data. Functions within this package can be used for parameter estimation (e.g., estimating regression coefficients and their standard deviations) and hypothesis testing. We use two examples to illustrate the utility of our package in analyzing data from different disciplines. In the first example, a tensor regression model is used to study the effect of multi-omics predictors on a continuous outcome variable which is associated with drug sensitivity. In the second example, we draw a subset of the MNIST handwritten images and fit to them a logistic tensor regression model. A significance test characterizes the image pattern that tells the difference between two handwritten digits. We also provide a function to visualize the areas as effective classifiers based on a tensor regression model. The visualization tool can also be used together with other variable selection techniques, such as the LASSO, to inform the selection results.

Original languageEnglish
Pages (from-to)152-163
Number of pages12
JournalR Journal
Issue number2
Publication statusPublished - 2022

All Science Journal Classification (ASJC) codes

  • Statistics and Probability
  • Numerical Analysis
  • Statistics, Probability and Uncertainty


Dive into the research topics of 'TensorTest2D: Fitting Generalized Linear Models with Matrix Covariates'. Together they form a unique fingerprint.

Cite this