Simulate a data set with tensor predictor and covariates.
sim.tensor.cov(tesize = 100)
Number of observations in testing data.
Simulated tensor predictor.
Simulated covariate.
Simulated testing tensor predictor.
Simualted testing covariate.
Vectorization of x
.
Vectorization of testx
.
Response corresponding to x
and z
.
Response corresponding to testx
and testz
.
The function simulates a data set with \(10\times 10\times 10\) tensor and covariate being a two-dimensional vector. Response are binary.