Check_tidy_input {TensorTest2D}R Documentation

The function confirming the input variables fit the requirements of the tensorReg2D function.

Description

The function confirming the input variables fit the requirements of the tensorReg2D function.

Usage

Check_tidy_input(y, X, W, n_R, family)

Arguments

y

A numerical vector. Dependent variable.

X

A numerical 3-D array. Independent variable(3-D tensor).

W

A numerical matrix. Independent variable.

n_R

A numerical constant. A predefined value determines the rank of the approximate matrix

family

Family of generalized linear model. Provide three options for model.(see more details in Details)

Value

A list. DATA: list of input data.DATA$y is the dependent variable. DATA$X is the 3-D tensor independent variables. DATA$W is other independent variables.

fm: The model expression shown in summary.tsglm.


[Package TensorTest2D version 1.1.2 Index]