compute_ncp {MRTSampleSizeBinary} | R 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)
[Package MRTSampleSizeBinary version 0.1.2 Index]