SimCorX: Simulating Correlated Y for Given X

Description Usage Arguments Value Examples

Description

Simulates bivariate correlation of specified n, means, sd, and rho

Usage

1
SimCorX(x, ymean, ysd, rho)

Arguments

ymean

mean of y variable

ysd

standard deviation of y variable

rho

intended correlation

Value

dataframe of correlated x and y variables

Examples

1
2
x=rnorm(10)
SimCorX(x, ymean=1, ysd=.5, rho=.5)

sbujarski/SpPack documentation built on Sept. 24, 2020, 5:54 p.m.