Wrapper for faux rnorm_pre
1 2 3 4 5 6 7 8 9 | gs_norm_corr(
.data,
colname,
corr_col,
mu = 0,
sd = 1,
r = 0,
empirical = FALSE
)
|
.data |
(required) the source data |
corr_col |
the correlated column name |
mu |
desired mean of returned vector |
sd |
desired SD of returned vector |
r |
desired correlation between existing and returned observations |
empirical |
logical. If true, mu, sd and r specify the empirical not population mean, sd and covariance |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.