as.TR_data: Format tensor regression data

View source: R/002_data_processing.R

as.TR_dataR Documentation

Format tensor regression data

Description

Format tensor regression data

Usage

as.TR_data(y, X, eta = NULL)

Arguments

y

a numeric response of length N

X

an array in which the last margin is of size N

eta

a matrix with N rows

Value

a list of class 'TR_data' in which dimensions have been verified as compatible with the tensor regression functions


danieladamspencer/bayestensorreg documentation built on July 23, 2024, 10:14 a.m.