cell_corr: Cell correlation for simulating data

Description Usage Arguments

View source: R/NRejections.R

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

1
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)


NRejections documentation built on July 9, 2020, 5:08 p.m.