Description Usage Arguments Value Author(s) See Also Examples

This function will generate a vector (y) with a known correlation to a given vector (x). The degree of correlation between x and y is determined by the parameter rho (the population correlation). Observed sample correlations between x and y will vary around rho, but this variation will decrease as the size of x increases.

1 | ```
sam.cor(x,rho)
``` |

`x` |
The given vector. |

`rho` |
Population correlation. |

The function prints the sample correlation for the specific set of numbers generated.

`y` |
A vector of numbers correlated with x. |

Paul Bliese [email protected]

1 2 3 |

multilevel documentation built on May 29, 2017, 5:38 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.