Learn R Programming

ebdbNet (version 1.1)

fdbkFunc: Feedback Function

Description

Helper function for ebdbn when feedback is included in a network.

Usage

fdbkFunc(y)

Arguments

y
A list of R (PxT) matrices of observed time course profiles

Value

  • A list of R (PxT) matrices of feedback profiles for the observed data.

Details

This function puts the observed variables (e.g., genes) in the correct format to be incorporated as feedback in ebdbn. Loosely speaking, if the matrices in the list of observed data are of the form $y_1, ..., y_T$, the function returns a list of matrices equal of the form $0, y_1, ..., y_{T-1}$ which are then used as inputs in the state space model.

See Also

ebdbn

Examples

Run this code
library(ebdbNet)
tmp <- runif(1) ## Initialize random number generator
set.seed(125214) ## Save seed

## Simulate autoregressive data
## 5 replicates, 10 time points, 10 genes
y <- simFunc(R = 5, T = 10, P = 10, v = rep(10,10), perc = 0.15)$y

## Create feedback profiles
u <- fdbkFunc(y)

Run the code above in your browser using DataLab