Learn R Programming

BaTFLED3D (version 0.2.11)

input_data: Object storing input data for BaTFLED algorithm with 3-D response tensor.

Description

Object storing input data for BaTFLED algorithm with 3-D response tensor.

Usage

input_data

Arguments

Format

An object of class R6ClassGenerator of length 24.

Slots

mode1.X

matrix of predictors for mode 1

mode2.X

matrix of predictors for mode 2

mode3.X

matrix of predictors for mode 3

resp

three dimensional array of responses with dimensions matching the number of rows in mode1.X, mode2.X and mode3.X

Examples

Run this code
# NOT RUN {
a <- input_data$new(mode1.X = matrix(rnorm(30), nrow=3, ncol=10),
                    mode2.X = matrix(rnorm(36), nrow=4, ncol=9), 
                    mode3.X = matrix(rnorm(40), nrow=5, ncol=8),
                    resp = array(rnorm(60), dim=c(3,4,5)))
im_mat(a$mode1.X)
im_mat(a$mode2.X)
im_mat(a$mode3.X)
im_mat(a$resp[,,1])
# }

Run the code above in your browser using DataLab