Description Usage Arguments Value Author(s)
View source: R/00.Miscellaneous.R
Generate a two point distribution sample with only one point above mean with the desired mean and variance.
1 | ExtremeTwoPointSample(n, m, v)
|
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. |
data frame with a W
column containing the values and a count
column containing the number of subjects having value W
.
Kazuki Yoshida
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.