sim.tensor.cov: Simulate data

Description Usage Arguments Details Value Author(s)

View source: R/sim.tensor.cov.R

Description

Simulate a data set with tensor predictor and covariates.

Usage

1
  sim.tensor.cov(tesize = 100)

Arguments

tesize

Number of observations in testing data.

Details

The function simulates a data set with 10\times 10\times 10 tensor and covariate being a two-dimensional vector. Response are binary.

Value

x

Simulated tensor predictor.

z

Simulated covariate.

testx

Simulated testing tensor predictor.

testz

Simualted testing covariate.

vec_x

Vectorization of x.

vec_testx

Vectorization of testx.

y

Response corresponding to x and z.

testy

Response corresponding to testx and testz.

Author(s)

Yuqing Pan, Qing Mai, Xin Zhang


TULIP documentation built on Jan. 13, 2021, 3:14 p.m.

Related to sim.tensor.cov in TULIP...