response,tskrr-method {xnet}R Documentation

Getters for tskrr objects

Description

The functions described here are convenience functions to get information out of a tskrr object.

Usage

## S4 method for signature 'tskrr'
response(x, ...)

## S4 method for signature 'tskrrHomogeneous'
lambda(x)

## S4 method for signature 'tskrrHeterogeneous'
lambda(x)

is_tskrr(x)

is_homogeneous(x)

is_heterogeneous(x)

symmetry(x)

get_eigen(x, which = c("row", "column"))

get_kernelmatrix(x, which = c("row", "column"))

has_hat(x)

get_kernel(x, which = c("row", "column"))

Arguments

x

a tskrr object or an object inheriting from tskrr.

...

arguments passed to other methods.

which

a character value indicating whether the eigen decomposition for the row kernel matrix or the column kernel matrix should be returned.

Value

For response: the original label matrix

For lambda: a named numeric vector with one resp both lambda values used in the model. The names are "k" and "g" respectively.

For is_tskrr a logical value indicating whether the object is a tskrr object

For is_homogeneous a logical value indicating whether the tskrr model is a homogeneous one.

For is_heterogeneous a logical value indicating whether the tskrr model is a heterogeneous one.

For symmetry a character value indicating the symmetry for a homogeneous model. If the model is not homogeneous, NA is returned.

For get_eigen the eigen decomposition of the requested kernel matrix.

For get_kernelmatrix the original kernel matrix for the rows or columns.

For has_hat a logical value indicating whether the tskrr model contains the kernel hat matrices.

Warning

The function get_kernel is deprecated. Use get_kernelmatrix instead.

Examples

data(drugtarget)

mod <- tskrr(drugTargetInteraction, targetSim, drugSim)
is_homogeneous(mod)

EigR <- get_eigen(mod)
EigC <- get_eigen(mod, which = 'column')
lambda(mod)


[Package xnet version 0.1.11 Index]