Wald test for hypothesis testing - new implementation (v2.1.1) adapted from the DESeq2 package.
wald_test.Rd
This function performs a Wald test for hypothesis testing by comparing an estimation to a reference value using the provided standard error. It allows testing for one-tailed alternatives: "greater" - β > reference_value, "less" - β < −reference_value, or two-tailed alternative: "greaterAbs" - |β| > reference_value. If the p-value obtained is greater than 1, it is set to 1 to avoid invalid p-values.