View source: R/Empirical_P_Values.R
generateSample | R Documentation |
Generates a random sample of a series of observations. Each segment of the random sample corresponds to sampling from a normal with the given mean and standard deviation.
generateSample(means, sds, segLengths)
means |
A vector where each entry corresponds to the mean of a segment. |
sds |
A vector where each entry corresponds to the standard deviation of a segment. |
segLengths |
A vector where each entry corresponds to the length of a segment. |
Returns a vector of the same length as the sum of all segment lengths.
Matthew Quinn
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.