Generate data from a poission random variable while still obtaining the desired xy correlation for each xy match and obtain the desired xx correlation among all x variables
1 | gen_pois_samp(ss, base, xycor, xxcor, num_cor, num_uncor, marg_indep = TRUE)
|
ss |
sample size. |
base |
Base rate that is desired |
xycor |
the correlation between each correlated x and y |
xxcor |
the correlation between the x's |
num_cor |
Number of correlated X's |
num_uncor |
Number of uncorrelated X's |
marg_indep |
Are the X-values independent from one another |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.