compute_ncp: Computes the non-centrality parameter for an F distributed...

View source: R/compute_ncp.R

compute_ncpR Documentation

Computes the non-centrality parameter for an F distributed random variable in the context of a MRT with binary outcome.

Description

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

Usage

compute_ncp(x, beta, m_matrix, sigma_matrix)

Arguments

x

Sample size

beta

Marginal excursion effect, assumed dimension p

m_matrix

"Bread" of sandwich estimator for variance

sigma_matrix

"Meat" of sandwich estimator for variance

Value

Returns non-centrality parameter for an F distributed random variable.

Examples

compute_ncp(300, beta_1, m_matrix_1, sigma_matrix_1)

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