is_equal_knownComp | R Documentation |
Test if the known component distributions coming from two admixture models are identical.
is_equal_knownComp(admixMod1, admixMod2)
admixMod1 |
An object of class 'admix_model' related to the first admixture model. |
admixMod2 |
An object of class 'admix_model' related to the second admixture model. |
A boolean (TRUE if the known components are the same, otherwise FALSE).
Xavier Milhaud xavier.milhaud.research@gmail.com
admixMod1 <- admix_model(knownComp_dist = "norm",
knownComp_param = list("mean"=0, "sd"=1))
admixMod2 <- admix_model(knownComp_dist = "norm",
knownComp_param = list("mean"=0, "sd"=1))
is_equal_knownComp(admixMod1, admixMod2)
admixMod1 <- admix_model(knownComp_dist = "multinom",
knownComp_param = list("size"=1, "prob"=c(0.2,0.5,0.3)))
admixMod2 <- admix_model(knownComp_dist = "multinom",
knownComp_param = list("size"=1, "prob"=c(0.2,0.4,0.4)))
is_equal_knownComp(admixMod1, admixMod2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.