outly {doex} | R Documentation |
Outlier generation function
Description
This function generates the outlier(s) by Interquantile range approach.
Usage
outly(ndata,noutlier,meand,vard,dif,alpha,normality.status,skewn.status)
Arguments
ndata |
sample size of the data without outlier(s). |
noutlier |
number of outlier(s) in data. |
meand |
mean of the data. |
vard |
variance of the data. |
dif |
distance level of outlier(s) from the whiskers. |
alpha |
significance level for the normality test. |
normality.status |
a logical operator controls the normality of data with outlier. "TRUE" for normal and "FALSE" for non-normal |
skewn.status |
a logical operator controls the skewness of the data with outlier. "0" for symmetric, "1" for right-skewed and "-1" for left-skewed. |
Value
data |
the vector contains the generated data with outlier(s) |
outlier |
the vector contains the generated outlier(s) |
normality.test |
the result of the Shapiro-Wilk normality test for the generated data |
Author(s)
Mustafa CAVUS
References
Alexander, R.A., Govern, D.M. (1994) A new and simplier approximation for ANOVA under variance heterogeneity, Journal of Educational Statistics, 19(2), 91-101.
Examples
library(doex)
outly(8,2,2,0.05,FALSE)