Description Usage Arguments Value Author(s) Examples

It generates random sample or population correlation or
covariance matrices. `rCor()`

is a wrapper to call
`rCorPop()`

and then `rCorSam()`

.

1 2 3 4 5 6 7 |

`Sigma` |
A list of population correlation/covariance matrices or a single matrix |

`V` |
A variance-covariance matrix of Sigma. |

`n` |
A vector or a single sample sizes. |

`corr` |
Logical. Whether to generate correlation or covariance matrices. |

`raw.data` |
Logical. Whether correlation/covariance matrices are generated via raw.data or directly from a Wishart distribution. |

`nonPD.pop` |
If it is |

`nonPD.sam` |
If it is |

`k` |
A vector or a single number of studies. |

An object of the generated population/sample correlation/covariance matrices.

Mike W.-L. Cheung <[email protected]>

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | ```
Sigma <- matrix(c(1, .2, .3,
.2, 1, .4,
.3, .4, 1), ncol=3, nrow=3)
V <- diag(c(.1, .1, .1))
## Generate two population correlation matrices
Pop.corr <- rCorPop(Sigma, V, k=2)
Pop.corr
summary(Pop.corr)
## Generate two sample correlation matrices
rCorSam(Sigma=Pop.corr, n=c(10, 10))
## The above code is the same as the following one
rCor(Sigma, V, n=c(10, 10))
``` |

metaSEM documentation built on Jan. 13, 2018, 5:03 p.m.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.