View source: R/09_Statistics.R
romicsGlmBinomial | R Documentation |
uses the function glm() to perform a glm binomial test to identify if the missingness of the values in the different groups is at random or not (performs all the paired tests between the groups of the selected factor). Results are recorded in the statistics layer of the outputted romics_object.
romicsGlmBinomial( romics_object, factor = "main", padj = TRUE, padj_method = "BH", reverse_order = FALSE )
romics_object |
has to be an romics_object created with the function romicsCreateObject(), |
factor |
a character string indicating the factor to use for the test, the list of the available factor can be obtained by using the function romics_factors(), if missing the function will use the main factor of the object |
padj |
a logical variable indincating wheter to perform or not adjustment of pvalues |
padj_method |
correction method. Must be in "holm", "hochberg", "hommel", "bonferroni", "BH", "BY", "fdr","none" |
reverse_order |
a boolean to indicate if the order of the factors needs to be reversed (this will make the calculated fold changes values A/B become B/A or log2(A/B) become log2(B/A)) |
alternative |
a character string specifying the alternative hypothesis, must be one of "two.sided" (default), "greater" or "less". You can specify just the initial letter. |
paired |
a logical indicating whether you want a paired t-test. |
pairing_factor |
name of a factor contained in an r_object, the list of the available factor can be obtained by using the function romics_factors() |
var.equal |
a logical variable indicating whether to treat the two variances as being equal. If TRUE then the pooled variance is used to estimate the variance otherwise the Welch (or Satterthwaite) approximation to the degrees of freedom is used. |
mode |
must be in "vs", "enrichments" indicates if the groups should be compaired by pair or against all other groups |
percentage_completeness |
a numerical value comprised between 0 and 100 to indicate the minimum completeness required in at least one group calculate the T.test (if set completeness is not met, p and fold change will be NA) |
When paired T.test are performed it is possible to include a second factor to generate the pairs. This function will also calculate the fold-changes or log2(fold-change). Please, note that the test will automatically determine if a log tranformation was performed to the object, subsequently we recommend to import not pre-logged data.frames when creating the object. For paired T.tests, it is possible to set a second factor containing the pairs, if missing the function will consider the pairs based on the column order in the romics_object.
an romics_object with the statistical layer containing the newly generated t.tests and fold-changes
Geremy Clair
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.