Learn R Programming

MRTSampleSizeBinary (version 0.1.2)

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

Value

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

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

Examples

Run this code
compute_ncp(300, beta_1, m_matrix_1, sigma_matrix_1)

Run the code above in your browser using DataLab