tensr1.0.1 package

Covariance Inference and Decompositions for Tensor Datasets

amprod

kk-mode product.

anorm_cd

Array normal conditional distributions.

array_bic_aic

Calculate the AIC and BIC.

arrIndices

Array indices.

atrans

Tucker product.

collapse_mode

Collapse multiple modes into one mode.

convert_cov

Convert the output from equi_mcmc to component covariance matrices.

demean_tensor

Demeans array data.

equi_mcmc

Gibbs sampler using an invariant prior.

fnorm

Frobenius norm of an array.

get_equi_bayes

Get the Bayes rule under multiway Stein's loss.

get_isvd

Calculate the incredible SVD (ISVD).

holq

Calculate the incredible higher-order LQ decomposition (HOLQ).

hooi

Calculate the higher-order orthogonal iteration (HOOI).

hosvd

Calculate the (truncated) higher-order SVD (HOSVD).

ihop

The incredible higher-order polar decomposition (IHOP).

kendalltau

Kendall's tau measure of association.

Kom

Commutation matrix.

ldan

Log-likelihood of array normal model.

listprod

Element-wise matrix products between two lists.

lq

LQ decomposition.

lrt_null_dist_dim_same

Draw from null distribution of likelihood ratio test statistic.

lrt_stat

Calculate the likelihood ratio test statistic.

mat

Unfold a matrix.

mhalf

The symmetric square root of a positive definite matrix.

mle_from_holq

Get MLE from output of holq.

multi_stein_loss

Calculate multiway Stein's loss from square root matrices.

multi_stein_loss_cov

Calculate multiway Stein's loss from component covariance matrices.

multiway_takemura

Calculate a truncated multiway Takemura estimator.

polar

The left polar decomposition.

qr2

QR Decomposition.

random_ortho

Generate a list of orthogonal matrices drawn from Haar distribution.

rmirror_wishart

Sample from the mirror-Wishart distribution.

rmvnorm

Multivariate normal simulation.

rsan

Standard normal array.

rwish

Wishart simulation.

sample_right_wishart

Gibbs update of Phi_inv.

sample_sig

Update for total variation parameter in equi_mcmc.

start_ident

Get list of identity matrices.

start_resids

Sample covariance matrices for each mode.

tensr

tensr: A package for Kronecker structured covariance inference.

topK

Top K elements of a vector.

tr

Trace of a matrix.

trim

Truncates small numbers to 0.

tsum

Tucker sum.

zscores

Normal scores.

A collection of functions for Kronecker structured covariance estimation and testing under the array normal model. For estimation, maximum likelihood and Bayesian equivariant estimation procedures are implemented. For testing, a likelihood ratio testing procedure is available. This package also contains additional functions for manipulating and decomposing tensor data sets. This work was partially supported by NSF grant DMS-1505136. Details of the methods are described in Gerard and Hoff (2015) <doi:10.1016/j.jmva.2015.01.020> and Gerard and Hoff (2016) <doi:10.1016/j.laa.2016.04.033>.

  • Maintainer: David Gerard
  • License: GPL-3
  • Last published: 2018-08-15