rnorm_cont: Generate contaminated normally distributed data

Description Usage Arguments Value Author(s)

Description

Simulate from a contaminated normal distribution. A proportion csd of random samples are scaled by csd and randomly shifted to the left or right by cshift.

Usage

1
rnorm_cont(n, mean = 0, sd = 1, cprop = 0.1, cshift = 3, csd = sd)

Arguments

n

number of observations

mean

mean value

sd

standard deviation

cprop

proportion of contaminated samples

cshift

mean shift of contaminated samples

csd

standard deviation of contaminated samples

Value

vector with n pseudo random numbers

Author(s)

Florian Klinglmueller


floatofmath/adaperm documentation built on May 16, 2019, 1:18 p.m.