Description Usage Arguments Value Examples
View source: R/sim_power_indiv.R
Simulate power starting from individual-level data for multiple explanatory factor setting.
1 2 3 4 5 6 7 8 9 10 | sim_stats_mef(
B,
sigSq,
xMat,
gMat,
alphaVec,
betaVec,
decompTrue = NULL,
checkpoint = FALSE
)
|
B |
Number of simulations. |
sigSq |
Variance of outcome. |
xMat |
Design matrix of non-genetic covariates, n*p. |
gMat |
Matrix of genotypes, n*J. |
alphaVec |
p*1 vector of regression coefficients for xMat. |
betaVec |
J*1 vector of regression coefficients for gMat. |
decompTrue |
The return value of a call to eigen() on the true covariance matrix. Can be null, in which case estimated covariance will be used. |
checkpoint |
Boolean, if true then print message every 50 simulations. |
A list with the elements:
zMat |
B*J matrix of test statistics Z. |
zVecGBJ |
Check on Z statistics, vector should match first row of zMat. |
iMat |
Innovated statistics matrix also of dimension B*J. |
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.