Learn R Programming

lrstat (version 0.2.13)

fwgtmat: Weight Matrix for All Intersection Hypotheses

Description

Obtains the weight matrix for all intersection hypotheses.

Usage

fwgtmat(w, G)

Value

The weight matrix starting with the global null hypothesis.

Arguments

w

The vector of weights for elementary hypotheses.

G

The transition matrix.

Author

Kaifeng Lu, kaifenglu@gmail.com

Examples

Run this code

w = c(0.5,0.5,0,0)
g = matrix(c(0,0,1,0, 0,0,0,1, 0,1,0,0, 1,0,0,0),
           nrow=4, ncol=4, byrow=TRUE)
(wgtmat = fwgtmat(w,g))

Run the code above in your browser using DataLab