Description Usage Arguments Value References
View source: R/learnFamilyBasedPGMs.R
Computes the p-value of the test of the null hypothesis of zero genetic, environmental,
or total partial correlation between X and Y given S, if dagg
, dage
, or dagt
is set as TRUE, respectively.
The unconfounded estimation and significance test for the genetic and environmental partial correlation coefficients are described in detail in \insertCiteribeiro2019family;textualFamilyBasedPGMs. They are based on univariate polygenic linear mixed models \insertCitealmasy1998multipointFamilyBasedPGMs, with two components of variance: the polygenic or family-specific random effect, which models the phenotypic variability across the families, and the environmental or subject-specific error, which models phenotypic variability after removing the familial aggregation effect.
This function can be used as a d-separation oracle in causal structure learning algorithms such as the IC/PC algorithm when the variables are normal distributed and the observations are clusterized in families.
1 | familyBasedCITest(x, y, S, suffStat)
|
x |
An integer value indicating the position of variable X. |
y |
An integer value indicating the position of variable Y. |
S |
An integer vector with the positions of zero or more conditioning variables in S. |
suffStat |
A list with the elements "phen.df", "covs.df", "pedigrees",
"minK", "maxFC", "orthogonal", "alpha", "dirToSave", "fileID",
"savePlots", and "useGPU", as described in function
|
The p-value of the test.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.