Learn R Programming

enpls (version 6.1)

print.enspls.fit: Print Fitted Ensemble Sparse Partial Least Squares Object

Description

Print coefficients of each model in the enspls.fit object.

Usage

# S3 method for enspls.fit
print(x, ...)

Arguments

x

An object of class enspls.fit.

...

Additional parameters for print.

See Also

See enspls.fit for fitting ensemble sparse partial least squares regression models.

Examples

Run this code
# NOT RUN {
data("logd1k")
x <- logd1k$x
y <- logd1k$y

set.seed(42)
fit <- enspls.fit(
  x, y,
  reptimes = 5, maxcomp = 3,
  alpha = c(0.3, 0.6, 0.9)
)
print(fit)
# }

Run the code above in your browser using DataLab