Learn R Programming

TRES (version 1.1.1)

summary.Tenv: Summarize method for Tenv object.

Description

Summary method for object returned from TRR.fit and TPR.fit functions.

Usage

# S3 method for Tenv
summary(object, ...)

# S3 method for summary.Tenv print(x, ...)

Arguments

object

An object of class "Tenv", as from TPR.fit or TRR.fit.

...

Arguments to be passed to or from other methods.

x

An object of class "summary.Tenv", usually, a result of a call to summary.Tenv.

Value

Return object with additional components

call

The method call

n

Sample size

xdim

Dimensions of predictor

ydim

Dimensions of response

coefficients

The tensor coefficients estimated from TPR.fit or TRR.fit

residuals

The residuals, which equals to the response minus the fitted values

Gamma

A list of envelope subspace basis

mse

Mean squared error. The mean squared Frobenius norm of the difference between each response \(\mathbf{Y}_i\) and fitted value \(\hat{\mathbf{Y}}_i\), $$1/n\sum_{i=1}^n\|\mathbf{Y}_i-\hat{\mathbf{Y}}_i\|_F^2$$

p_val

Only for object returned from TRR.fit, p-value for coefficients

se

Only for object returned from TRR.fit, standard error for coefficients

Details

Extract call, coefficients, residuals, Gamma from object.

The mean squared error mse is defined as \(1/n\sum_{i=1}^n\|\mathbf{Y}_i-\hat{\mathbf{Y}}_i\|_F^2\), where \(\hat{\mathbf{Y}}_i\) is the prediction and \(\|\cdot\|_F\) is the Frobenius norm of tensor.

For the object returned from TRR.fit, return the \(p\)-value and the standard error of estimated coefficient. However, since \(p\)-value and standard error depend on \(\widehat{\mathrm{cov}}^{-1}\{\mathrm{vec}(\mathbf{X})\}\) which is unavailable for the ultra-high dimensional \(\mathrm{vec}(\mathbf{X})\) in tensor predictor regression (TPR), the two statistics are not provided for the object returned from TPR.fit.

print.summary.Tenv gives a more readable format of the statistics contained in summary.Tenv. If object is from TRR.fit, then p-val and se are also returned.

See Also

Tenv_Pval is used to calculate the \(p\)-value and standard error.

PMSE is used to calculate mean squared error for any provided datasets and coefficient.

Fitting functions TRR.fit, TPR.fit.

Examples

Run this code
# NOT RUN {
data("bat")
x <- bat$x
y <- bat$y
fit <- TRR.fit(x, y, method="standard")
##print summary
summary(fit)
# }

Run the code above in your browser using DataLab