Sfct: Covariance matrix

Description Usage Arguments Value Examples

Description

Computes the covariance matrix.

Usage

1
Sfct(s, L)

Arguments

s

vector - Variance. The function will take the diagonal matrix where the diagonals elements equals to the elements of s.

L

matrix - Matrix of total causal effects of the GBN.

Value

Gives the covariance matrix between L and a diagonal matrix : the elements of this matrix are equal to the elements of s.

Examples

1
2
3
4
s <- rep(0.5,5)
L <- 1*upper.tri(matrix(0,5,5))+diag(rep(1,5))

Sfct(s,L)

andreamrau/GBNcausal documentation built on May 12, 2019, 3:34 a.m.