rnorm.out: A matrix of samples from a Normal distribution with outliers

Description Usage Arguments Value Examples

Description

Simulates samples of normally distributed data, each "contaminated" with outliers from a different normal distribution according to a user-specified probability.

Usage

1
2
rnorm.out(nsamps, n, gamma, theta = 0, lambda = 10, targ.sd = 1,
  out.sd = 1)

Arguments

nsamps

The number of samples to simulate.

n

The number of independent observations per sample

gamma

The probability that each observation is from the non-target distribution.

theta

The expectation of the target distribution.

lambda

The expectation of the non-target / "contamination" / outlier distribution.

targ.sd

The standard deviation of the target distribution.

out.sd

The standard deviation of the outlier distribution.

Value

A matrix of independent random numbers with nsamps rows and n columns.

Examples

1
rnorm.out(5, 20, .2, 0, 10)

mdedge/stfspack documentation built on May 9, 2019, 8:17 a.m.