genbivunif.a: Simulating Bivariate Uniform Data via Beta(a,1)

Description Usage Arguments Value See Also Examples

View source: R/genbivunif.a.R

Description

This function simulates bivariate uniform data via Beta(a,1) and a specified correlation (rho) as described in Demirtas (2014).

Usage

1
genbivunif.a(N=10000, rho, print.cor=TRUE)

Arguments

N

The sample size for the bivariate uniform data to be simulated. Default is 10,000.

rho

Theoretical correlation for the uniform data to be simulated.

print.cor

Option to print correlation results. Default is TRUE.

Value

A list of length 3 containing the simulated bivariate uniform data, the theoretical correlation specified by the user, and the empirical correlation of the simulated data titled unif.dat, specified.rho, and empirical.rho, respectively.

See Also

rho2delta

Examples

1
2
3
set.seed(98732)
res.gena<-genbivunif.a(N=10000, rho=0.9)
#"Specified rho is 0.9 and empirical rho is 0.898361."

BivUnifBin documentation built on March 6, 2021, 1:06 a.m.