SimCor: Simulating Correlated Data

Description Usage Arguments Value Examples

Description

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

Usage

1
SimCor(n, xmean, xsd, ymean, ysd, rho)

Arguments

n

number of datapoints to simulate

xmean

mean of x variable

xsd

standard deviation of x variable

ymean

mean of y variable

ysd

standard deviation of y variable

rho

intended correlation

Value

dataframe of correlated x and y variables

Examples

1
SimCor(n=20, xmean=10, xsd=5, ymean=1, ysd=.5, rho=.5)

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