Description Usage Arguments Details Value Examples

Create a correlation matrix

1 |

`nvars` |
number of rows and columns (i.e. number of variables) for correlation matrix |

`cors` |
vector of correlations. |

If the vector cors is not specified, a random correlation matrix is generated with no assumptions. If the vector is provided, it should be interpreted as the lower triangle of the correlation matrix, and is specified by reading down the columns. For example, if CM is the correlation matrix and nvars = 3, then CM[2,1] = cors[1], CM[3,1] = cors[2], and CM[3,2] = cors[3].

correlation matrix of size nvars x nvars

1 2 3 4 5 |

kgoldfeld/simstudy documentation built on Dec. 23, 2018, 5:33 a.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.