Description Usage Arguments Details Value Author(s) Examples
Basic function for simulating bivariate data
1 2 3 4 5 6 7 8 9 10 |
cor |
The correlation coefficient between the Y and X |
means |
A vector of length two that indicates the mean of Y and X, respectively |
sds |
A vector of length two that indicates the standard deviations of Y and X, respectively |
n |
Either a single value or a vector indicating the sample size of each group |
names |
The names of the Y and X variables, respectively |
groups |
The names of the groups |
digits |
The number of digits the numeric variables should be rounded to |
cap |
The min/max values for each of the variables, to be used for truncating scores, coded as a vector. |
This can model either numeric on numeric data or categorical on numeric.
a simulated dataset
Dustin Fife
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.