print.pre {pre} | R Documentation |
Print method for objects of class pre
Description
print.pre
prints information about the generated prediction rule
ensemble to the command line
Usage
## S3 method for class 'pre'
print(x, penalty.par.val = "lambda.1se", digits = getOption("digits"), ...)
Arguments
x |
An object of class |
penalty.par.val |
character or numeric. Value of the penalty parameter
|
digits |
Number of decimal places to print |
... |
Further arguments to be passed to
|
Details
Note that the CV error is estimated with data that was also used
for learning rules and may be too optimistic. Use function cvpre
to
obtain a more realistic estimate of future prediction error.
Value
Prints information about the fitted prediction rule ensemble.
See Also
pre
, summary.pre
, plot.pre
,
coef.pre
, importance.pre
, predict.pre
,
interact
, cvpre
Examples
set.seed(42)
airq.ens <- pre(Ozone ~ ., data = airquality[complete.cases(airquality),])
print(airq.ens)