tensortest2d
Science Score: 26.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
○Academic publication links
-
○Committers with academic emails
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (10.7%) to scientific vocabulary
Keywords
Repository
Statistics
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
- Releases: 0
Topics
Metadata Files
README.md
TensorTest2D
An implementation of fitting generalized linear models on second-order tensor type data. The functions within this package mainly focus on parameter estimation, including parameter coefficients and standard deviation.
Installation
git clone https://github.com/yuting1214/TensorTest2D
R CMD INSTALL TensorTest2D
or in R console window type the following
install.packages("TensorTest2D")
Quick start
``` library(TensorTest2D)
Simulate data
n <- 500 # number of observations nP <- 3; nG <- 64 # dimension of 3-D tensor variables. nd <- 1 # number of numerical variable, if nd == 1, numerical variable equals to intercept. betaTrue <- rep(1, nd) BTrue <- c(1,1,1)%*%t(rnorm(nG)) + c(0, .5, .5)%%t(rnorm(nG)) BTrue <- B_True / 10 W <- matrix(rnorm(nnd), n, nd); W[,1] <- 1 X <- array(rnorm(nn_PnG), dim=c(nP, n_G, n))
Regression Data
yR<- as.vector(W%*%betaTrue + X%hp%BTrue + rnorm(n)) DATAR <- list(y = y_R, X = X, W = W)
Execution (Regression)
resultR <- tensorReg2D(y = DATAR$y, X = DATAR$X, W=NULL, nR = 1, family = "gaussian", opt = 1, max_ite = 100, tol = 10^(-7) )
Visualization
image(BTrue);image(resultR$BEST) head(predict(resultR, DATA_R$X)) ```
Relevant Packages
- tensor: The tensor product of two arrays is notionally an outer product of the arrays collapsed in specific extents by summing along the appropriate diagonals.
- rTensor: Tools for Tensor Analysis and Decomposition
- tensorregress: Implement the alternating algorithm for supervised tensor decomposition with interactive side information.
Publications
- Ping-Yang Chen/Hsing-Ming Chang/Yu-Ting Chen/Jung-Ying Tzeng/Sheng-Mao Chang* (2022) ,TensorTest2D: Fitting Generalized Linear Models with Matrix Covariates,The R Journal,14,152-163,SSCI
Owner
- Login: yuting1214
- Kind: user
- Repositories: 4
- Profile: https://github.com/yuting1214
R, Python user. Interested in statistical computing, statistical simulation
GitHub Events
Total
Last Year
Issues and Pull Requests
Last synced: 6 months ago
All Time
- Total issues: 0
- Total pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Total issue authors: 0
- Total pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 0
- Pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Issue authors: 0
- Pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
Pull Request Authors
Top Labels
Issue Labels
Pull Request Labels
Packages
- Total packages: 1
-
Total downloads:
- cran 264 last-month
- Total dependent packages: 0
- Total dependent repositories: 0
- Total versions: 7
- Total maintainers: 1
cran.r-project.org: TensorTest2D
Fitting Second-Order Tensor Data
- Homepage: https://github.com/yuting1214/TensorTest2D
- Documentation: http://cran.r-project.org/web/packages/TensorTest2D/TensorTest2D.pdf
- License: GPL-2 | GPL-3 [expanded from: GPL]
-
Latest release: 1.1.2
published over 1 year ago
Rankings
Maintainers (1)
Dependencies
- R >= 3.5.0 depends
- grDevices * imports
- graphics * imports
- stats * imports
- utils * imports
- abind * suggests
- glmnet * suggests
- knitr * suggests
- rmarkdown * suggests
- testthat * suggests