Learn R Programming

rgTest (version 0.1)

theo_mu_sig: get analytic expressions of expectations, variances and covariances

Description

get analytic expressions of expectations, variances and covariances

Usage

theo_mu_sig(E, n1, n2, weights)

Value

mu

the expectation of the between-sample edge-count.

mu1

the expectation of the within-sample edge-count for sample 1.

mu2

the expectation of the within-sample edge-count for sample 2.

sig

the variance of the between-sample edge-count.

sig11

the variance of the within-sample edge-count for sample 1.

sig22

the variance of the within-sample edge-count for sample 2.

sig12

the covariance of the within-sample edge-counts.

Arguments

E

an edge matrix representing a similarity graph. Each row represents an edge and records the indices of two ends of an edge in two columns. The indices of observations in sample 1 are from 1 to n1 and indices of observations in sample 2 are from 1+n1 to n1+n2.

n1

number of observations in sample 1

n2

number of observations in sample 2

weights

weights assigned to each edges