cell_corr {NRejections}R Documentation

Cell correlation for simulating data

Description

The user does not need to call this function. This internal function is called by make_corr_mat and populates a single cell. Assumes X1 is the covariate of interest.

Usage

cell_corr(vname.1, vname.2, rho.XX, rho.YY, rho.XY, nY, prop.corr = 1)

Arguments

vname.1

Quoted name of first variable

vname.2

Quoted name of second variable

rho.XX

Correlation between pairs of Xs

rho.YY

Correlation between all pairs of Ys

rho.XY

rho.XY Correlation between pairs of X-Y (of non-null ones)

nY

Number of outcomes

prop.corr

Proportion of X-Y pairs that are non-null (non-nulls will be first .prop.corr * .nY pairs)


[Package NRejections version 1.2.0 Index]