Learn R Programming

xnet (version 0.1.11)

fitted.tskrr: 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 tskrr
fitted(object, labels = TRUE, ...)

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

# S4 method for tskrr fitted(object, labels = TRUE, ...)

# S4 method for 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

Run this code
# NOT RUN {
data(drugtarget)

mod <- tskrr(drugTargetInteraction, targetSim, drugSim)
pred <- fitted(mod)

# }

Run the code above in your browser using DataLab