Learn R Programming

ggRandomForests (version 3.1.2)

summary.gg: Summary methods for gg_* data objects

Description

Where print gives you a one-line header, summary digs a level deeper. Each summary.gg_*() method returns a summary.gg object: a header line plus a few diagnostic statistics for that object type (the OOB error curve, the top VIMP variables, a time range, the integrated CRPS, and so on). print.summary.gg() renders it to the console.

Usage

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Value

A summary.gg object: a list with header and body character vectors. print.summary.gg returns it invisibly.

Arguments

x

A summary.gg object (for print.summary.gg).

...

Not currently used.

object

A gg_* data object.

See Also

print.gg, autoplot.gg

Examples

Run this code
set.seed(42)
airq <- na.omit(airquality)
rf <- randomForestSRC::rfsrc(Ozone ~ ., data = airq, ntree = 50)
summary(gg_error(rf))
summary(gg_vimp(rf))

Run the code above in your browser using DataLab