rscn: random sample from contaminatied normal distribution

Description Usage Arguments Value References Examples

Description

simulates a random sample of size n drawn from a skewed contaminated normal distribution with percent contamination eps, standard deviation ratio sigma_c and mean mu_c.

Usage

1
rscn(n, eps, sd, mu)

Arguments

n

an integer, the size of the sample drawn from the distribution

eps

a number, epsilon usually between 0 and 1

sd

a number, the standard deviation should be greater than or equal to 1

mu

a number, the mean

Value

a random sample from contaminated normal distribution

References

Hogg, R. McKean, J. Craig, A. (2018) Introduction to Mathematical Statistics, 8th Ed. Boston: Pearson.

Examples

1
2
3
4
5
n <- 5
eps <- .2
sd <- 2.4
mu <- 0
rscn(n, eps, sd, mu)

austinragotzy/mathstat documentation built on May 13, 2019, 11:30 a.m.