Tenv_Pval {TRES} | R Documentation |
The p
-value and standard error of coefficient in tensor response regression (TRR) model.
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(x, y, Bhat)
Arguments
x |
The response tensor instance |
y |
A vector predictor of dimension |
Bhat |
The estimator of tensor regression coefficient. The |
Value
p_ols |
The p-value tensor of OLS estimator. |
p_val |
The p-value tensor of |
se |
The standard error tensor of |
Examples
## Use dataset bat
data("bat")
x <- bat$x
y <- bat$y
fit_std <- TRR.fit(x, y, method="standard")
Tenv_Pval(x, y, fit_std$coefficients)
[Package TRES version 1.1.5 Index]