compute_m_sigma: Computes "M" and "Sigma" matrices for the sandwich estimator...

View source: R/compute_m_sigma.R

compute_m_sigmaR Documentation

Computes "M" and "Sigma" matrices for the sandwich estimator of variance-covariance matrix.

Description

A helper function for mrt_binary_power() and mrt_binary_ss().

Usage

compute_m_sigma(avail_pattern, f_t, g_t, beta, alpha, p_t)

Arguments

avail_pattern

A vector of length T that is the average availability at each time point

f_t

Defines marginal excursion effect MEE(t) under alternative together with beta. Assumed to be matrix of size T*p.

g_t

Defines success probability null curve together with alpha. Assumed to be matrix of size T*q.

beta

Length p vector that defines marginal excursion effect MEE(t) under alternative together with f_t.

alpha

Length q vector that defines success probability null curve together with g_t.

p_t

Length T vector of randomization probabilities at each time point

Value

List containing two matrices. The first is the M matrix and the second is the Sigma matrix.

Examples

           compute_m_sigma(tau_t_1, f_t_1, g_t_1, beta_1, alpha_1,
                                      p_t_1)

MRTSampleSizeBinary documentation built on May 1, 2022, 5:08 p.m.