ExtremeTwoPointSample: Generate a two point distribution sample with only one point...

Description Usage Arguments Value Author(s)

View source: R/00.Miscellaneous.R

Description

Generate a two point distribution sample with only one point above mean with the desired mean and variance.

Usage

1

Arguments

n

Required number of individuals in the sample. If 0, an empty row data frame is returned.

m

Required positive sample mean. As this is used to reconstruct a weight distribution, it has to be positive. NaN created by 0/0 is allowed if n = 0.

v

Required non-negative sample variance. As the weights can be the same for all individuals, zero is permitted.

Value

data frame with a W column containing the values and a count column containing the number of subjects having value W.

Author(s)

Kazuki Yoshida


kaz-yos/distributed documentation built on May 27, 2019, 4:50 a.m.