Skip to contents

Print summary statistics for a fitted cv.hfr model

Usage

# S3 method for cv.hfr
print(x, ...)

Arguments

x

Fitted cv.hfr model.

...

additional methods passed to print.

Value

Summary statistics of HFR model

Details

The call that produced the object x is printed, following by a data.frame of summary statistics, including the effective degrees of freedom of the model, the R.squared and the regularization parameter.

See also

hfr, cv.hfr and coef methods

Author

Johann Pfitzinger

Examples

x = matrix(rnorm(100 * 20), 100, 20)
y = rnorm(100)
fit = cv.hfr(x, y, kappa = seq(0, 1, by = 0.1))
print(fit)
#> 
#> Call:  cv.hfr(x = x, y = y, kappa = seq(0, 1, by = 0.1)) 
#> 
#> Best 'kappa':  0 
#> 
#>    Df R.squared kappa  MSE
#> 1   1      0.00   0.0 1.11
#> 2   3      0.09   0.1 1.29
#> 3   5      0.11   0.2 1.36
#> 4   7      0.11   0.3 1.39
#> 5   9      0.12   0.4 1.42
#> 6  11      0.13   0.5 1.44
#> 7  13      0.13   0.6 1.47
#> 8  15      0.13   0.7 1.50
#> 9  17      0.14   0.8 1.53
#> 10 19      0.14   0.9 1.56
#> 11 21      0.14   1.0 1.58