Description Usage Arguments Details Value Author(s)
View source: R/Normality.test.R
Test for normality of the trait
1 |
y |
vector of phenotype data (one entry per individual), of length n. |
X |
matrix of covariates including intercept (dimension: n \times p, with p the number of covariates) |
pedigree |
a pedigree as output by
|
plot |
(logical) If set to TRUE a histogram will be plotted of the phenotype residuals after adjusting for covariates (default: FALSE). |
This function is used to test whether the phenotype is distributed normally, based on the Shapiro-Wilk test.
A list with the following elements:
SW.pvalue
: Shapiro-Wilk p-value that indicates
whether the phenotype is distributed normally.
resid.0
: the residuals after regressing the
phenotype onto X.
Karim Oualkacha
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.