Learn R Programming

TRES (version 1.1.1)

square: Square simulated data

Description

Simulated data used in tensor predictor regression (TPR). The pattern of coefficient is a square.

Usage

data("square")

Arguments

Format

A list consisting of three components:

x

A \(32 \times 32 \times 200\) tensor

y

A \(1 \times 200\) matrix

coefficients

A \(32\times 32 \times 1\) tensor with the square pattern

Gamma

Two envelope basis: \(32 \times 2\) matrices

Examples

Run this code
# NOT RUN {
data("square")
## Coefficients
coeff <- square$coefficients
image(-coeff@data[, , 1], axes=TRUE, col = grey(seq(0, 1, length = 256)))
title('Coefficient matrix')
# }

Run the code above in your browser using DataLab