fwgtmat: Weight Matrix for All Intersection Hypotheses

View source: R/RcppExports.R

fwgtmatR Documentation

Weight Matrix for All Intersection Hypotheses

Description

Obtains the weight matrix for all intersection hypotheses.

Usage

fwgtmat(w, G)

Arguments

w

The vector of weights for elementary hypotheses.

G

The transition matrix.

Value

The weight matrix starting with the global null hypothesis.

Author(s)

Kaifeng Lu, kaifenglu@gmail.com

Examples


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))


lrstat documentation built on Oct. 18, 2024, 9:06 a.m.