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

Description Usage Format Slots Examples

Description

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

Usage

1

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

1
2
3
4
5
6
7
8
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])

BaTFLED3D documentation built on May 2, 2019, 2:38 p.m.