logratio: Log-likelihood-ratio statistics used in DiffNet

Description Usage Arguments Value Author(s) Examples

View source: R/diffnet.R

Description

Log-likelihood-ratio statistics used in Differential Network

Usage

1
logratio(x1, x2, x, sig1, sig2, sig, mu1, mu2, mu)

Arguments

x1

data-matrix sample 1

x2

data-matrix sample 2

x

pooled data-matrix

sig1

covariance sample 1

sig2

covariance sample 2

sig

pooled covariance

mu1

mean sample 1

mu2

mean sample 2

mu

pooled mean

Value

Returns a list with named elements 'twiceLR', 'sig1', 'sig2', 'sig'. 'twiceLR' is twice the log-likelihood-ratio statistic.

Author(s)

n.stadler

Examples

1
2
3
x1=matrix(rnorm(100),50,2)
x2=matrix(rnorm(100),50,2)
logratio(x1,x2,rbind(x1,x2),diag(1,2),diag(1,2),diag(1,2),c(0,0),c(0,0),c(0,0))$twiceLR

nethet documentation built on Nov. 8, 2020, 6:54 p.m.