Learn R Programming

TULIP (version 1.0.2)

sim.tensor.cov: Simulate data

Description

Simulate a data set with tensor predictor and covariates.

Usage

sim.tensor.cov(tesize = 100)

Arguments

tesize

Number of observations in testing data.

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.

Details

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