Learn R Programming

TRES (version 1.1.0)

Tenv_Pval: The \(p\)-value and standard error of each element in the estimator of the tensor response regression (TRR) coefficient

Description

Obtain \(p\)-value of each element in the tensor regression coefficient estimator. Two-sided t-tests are implemented on the coefficient estimator, where asymptotic covariance of the OLS estimator is used.

Usage

Tenv_Pval(Xn, Yn, Bhat)

Arguments

Xn

The response tensor instance \( r_1\times r_2\times \cdots \times r_m\).

Yn

A vector predictor of dimension \(p\).

Bhat

The estimator of tensor regression coefficient.

Value

p_ols

The p-value tensor of OLS estimator.

p_val

The p-value tensor of Bhat.

se

The standard error tensor of Bhat.

Examples

Run this code
# NOT RUN {
## Use dataset bat
data("bat")
Xn <- bat$Xn
Yn <- bat$Yn
res_std <- TRR.fit(Xn, Yn, method="standard")
Tenv_Pval(Xn, Yn, res_std$coefficients)
# }

Run the code above in your browser using DataLab