View source: R/generateSiberData.R
generateSiberData | R Documentation |
This function simulates data for a specified number of communities. It is a
wrapper function for generateSiberCommunity()
.
generateSiberData(
n.groups = 3,
n.communities = 2,
n.obs = 30,
mu.range = c(-1, 1, -1, 1),
wishSigmaScale = 1
)
n.groups |
the an integer specifying the number of groups per community to simulate. Defaults to 3. |
n.communities |
the number of communities to simulate data for. Defaults to 2. |
n.obs |
the number of observations to draw per group. |
mu.range |
a vector of length 4, specifying the mix and max x and y
values to sample means from. Group means are sampled from a uniform
distribution within this range. The first two entries are the min and max
of the x-axis, and the second two the min and max of the y-axis. Defaults
to |
wishSigmaScale |
is a simple multiplier for the call to
|
A data.frame object comprising a column of x and y data, a group identifying column and a community identifying column, all of which are numeric.
generateSiberData()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.