Learn R Programming

BlockwiseRankTest (version 0.1.0)

Cov_mu.c: Covariance and Expectation (Congregated Form)

Description

Computes the 2×2 covariance matrix and expectation vector (mu) for the congregated BRISE statistic (Ux, Uy), under the pattern-wise permutation null distribution.

Usage

Cov_mu.c(R, m_, n_, ptn_list)

Value

List with two elements:

Cov

2×2 covariance matrix for (Ux, Uy).

mu

Numeric vector length-2 giving expected values of (Ux, Uy) under null.

Arguments

R

Numeric symmetric rank matrix (N × N).

m_

Integer vector. X's sample sizes in each pattern.

n_

Integer vector. Y's sample sizes in each pattern.

ptn_list

List of integer vectors that indexes observations sharing the same missing pattern.