Description Usage Arguments Value Examples
Covariance matrix is created using for each position cov.matrix[i,j] = rho^|i-j|
| 1 | gen.synth.xdata(n.obs, n.vars, rho, my.mean = rep(0, n.vars))
 | 
| n.obs | number of observations | 
| n.vars | number of variables | 
| rho | value used to calculate rho^|i-j| . values between 1 and 0 | 
| my.mean | vector of mean variables | 
a matrix of xdata
| 1 2 3 | gen.synth.xdata(100, 8, .75)
gen.synth.xdata(1000, 5, .2)
cov(gen.synth.xdata(n.obs = 10, n.vars = 10, rho = .2))
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.