Learn R Programming

SimTimeVar (version 1.0.0)

BN.rBound: Maximum correlation between binary and normal random variables

Description

Given parameter p for a Bernoulli random variable, returns its maximum possible correlation with an arbitrary normal random variable. Used to adjust correlation matrices whose entries are not theoretically possible.

Usage

BN.rBound(p)

Arguments

p

Parameter of Bernoulli random variable.

Examples

Run this code
# NOT RUN {
# find the largest possible correlation between a normal
#  variable and a binary with parameter 0.1
BN.rBound(0.1)
# }

Run the code above in your browser using DataLab