Description Usage Arguments Value See Also Examples
This functions uses shapiro.test
to test the normality of the
exposures and returns a data.frame
with a boolean value and a
p-value for each exposure.
1 2 3 4 5 6 7 8 | normalityTest(
object,
exposure,
th = 0.05,
min.val = 5,
na.rm = TRUE,
warnings = TRUE
)
|
object |
ExposomeSet with the exposome to be tested. |
exposure |
Name of the exposure to be tested, if missing all the exposures will be tested. |
th |
(by default |
min.val |
(by default |
na.rm |
(by default |
warnings |
(by default: |
A data.frame
with three columns: exposure, normality and
p.value. "exposure" column contains the name of each exposure. "normalty"
column contains a logical
value indicating if the obtained p-value
is under the given threshold. "p.value" column contains the obtained p-value
from shapiro.test
.
plotHistogram to draw the shape of an exposure, plotMissings to draw a plot with the missing data an ExposomeSet, imputation to impute missing data on the exposures of an ExposomeSet
1 2 | data("exposome")
normalityTest(expo)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.