fitted.tskrr {xnet} | R Documentation |
extract the predictions
Description
This functions extracts the fitted predictions from a
tskrr
object or an object
inheriting from that class. The xnet
package provides an S4 generic for the function
fitted
from the package stats
,
and a method for tskrr
objects.
Usage
## S3 method for class 'tskrr'
fitted(object, labels = TRUE, ...)
## S3 method for class 'linearFilter'
fitted(object, ...)
## S4 method for signature 'tskrr'
fitted(object, labels = TRUE, ...)
## S4 method for signature 'linearFilter'
fitted(object, ...)
Arguments
object |
an object for which the extraction of model fitted values is meaningful. |
labels |
a logical value indicating whether the labels should be shown. Defaults to TRUE |
... |
arguments passed to or from other methods. |
Value
a numeric matrix with the predictions
Examples
data(drugtarget)
mod <- tskrr(drugTargetInteraction, targetSim, drugSim)
pred <- fitted(mod)
[Package xnet version 0.1.11 Index]