Description Usage Arguments Details Value See Also Examples
Methods to extract the risk from models fitted via cfboost and
to print and show the results.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | ## S3 method for class 'cfboost'
risk(object, ...)
## S3 method for class 'oobag'
plot(x, xlab = "iteration",
ylab = "risk (= - log likelihood) in validation sample",
type = "l", mstop = TRUE, xlim = NULL, ...)
## S3 method for class 'inbag'
plot(x, xlab = "iteration",
ylab = "risk (= - log likelihood) in learning sample",
type = "l", mstop = TRUE, xlim = NULL, ...)
## S3 method for class 'oobag'
print(x, print = TRUE, ...)
## S3 method for class 'inbag'
print(x, print = TRUE, ...)
|
object |
an object of class |
x |
an object of either class |
xlab |
A title for the x axis. |
ylab |
A title for the y axis. |
type |
type of plot to be drawn. See |
mstop |
logic. If |
xlim |
the limits of the x axis, see |
print |
logic. If |
... |
further arguments to be pased on. |
The function risk allows to extract the risk (vector) from an
object (of class cfboost).
Depending on the type of risk (oobag or inbag)
different plotting facilities exist. Note however, that
plot.inbag is just a wrapper for plot.oobag with
different defaults.
In the same manner a print method is defined for
oobag and inbag risk.
risk returns the empirical inbag or out-of-bag risk from a
cfboost object.
print returns the given object invvisble.
for other methods for cfboost objects see
methods.
See cv for cross-validated risk.
1 2 | ## see for example ?CoxFlexBoost-package
## for the usage of risk() and plot(risk()) etc.
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.