Learn R Programming

rtemis (version 0.79)

rtMod-methods: rtMod S3 methods

Description

S3 methods for rtMod class. Excludes functions print and plot defined within the rtMod class itself.

Usage

# S3 method for rtMod
print(x, ...)

# S3 method for rtMod fitted(object, ...)

# S3 method for rtMod predict(object, newdata, trace = 0, verbose = TRUE, ...)

# S3 method for rtMod residuals(object, ...)

# S3 method for rtMod plot(x, estimate = NULL, theme = getOption("rt.fit.theme", "lightgrid"), filename = NULL, ...)

# S3 method for rtMod summary(object, plots = TRUE, cex = 1, fit.true.line = "lm", resid.fit.line = "gam", fit.legend = TRUE, se.fit = TRUE, single.fig = TRUE, summary = TRUE, theme = getOption("rt.fit.theme", "lightgrid"), title.col = NULL, ...)

# S3 method for rtMod coef(object, verbose = TRUE, ...)

# S3 method for rtModLite predict(object, newdata, ...)

Arguments

...

Additional arguments to be passed to mplot3

object

rtemis model

newdata

Testing set features

theme

String. mplot3 theme to use. Options: "box", "darkbox", "light", "dark"

plots

Logical. Should plots be printed?

cex

Numeric. Character expansion factor

fit.true.line

rtemis model to use for fitted vs. true line Options: modSelect()

resid.fit.line

rtemis model to use for residuals vs. fitted line. Options: modSelect()

fit.legend

Logical. Should fit legends be printed? Defaults to TRUE

se.fit

Logical. Should 2 * standard error bands be plotted? Defaults to TRUE

single.fig

Logical. Should all plots be in same figure? Defaults to TRUE

summary

Logical. Should summary be printed? Defaults to TRUE

title.col

Color for main title

object

Trained model of class rtMod

newdata

Testing set features