View source: R/func__betaSignCongruence.R
betaSignCongruence | R Documentation |
This function calculates the percentage of matched fixed effects having the same sign. The outcome can be visualised as a scatter plot or so.
betaSignCongruence(lmms, plms, p.max = 1, step = 5e-04, nevLog = TRUE)
lmms |
A data frame from the function lmm for association status between patterns. Assuming assoc = lmm(...), then lmms = assoc$lmms.pat$dif$h1. |
plms |
A data frame from the function plr for association status between patterns. Assuming assoc = plr(...), then plms = assoc$pat. Pattern orders for association tests must match to those in lmms. Otherwise, both data frames cannot merge correctly. |
p.max |
Upper bound of raw p-values for congruence assessment. |
step |
Step size of betas for calculating the congruence percentage. |
nevLog |
A logical argument determining whether -log10 will be applied to p-values in the result. |
A data frame of percentages as measurements of sign congruence.
Yu Wan (wanyuac@126.com)
sg <- betaSignCongruence(lmms = assoc_lmm$lmms.pat$dif$h1, plms = assoc_lgr$pat, p.max = 1, step = 0.0005, nevLog = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.