Moran-Downton Bivariate Exponential Distribution

Provides 3D plots of the Moran-Downton bivariate exponential distribution (MDBED), generates bivariate random values, and also provides values of the joint and conditional PDFs and CDFs. Nagao M, Kadoya M (1971) < http://hdl.handle.net/2433/124795>. Balakrishna N, Lai CD (2009) .


MDBED

The goal of MDBED is to provide 3D plots of the Moran-Downton bivariate Exponential distribution (BED), generate bivariate random values, and also provide values of the joint and conditional PDFs and CDFs.

Installation

You can install the released version of MDBED from GitHub with:

# install.packages("devtools")
devtools::install_github("lfduquey/MDBED")

Example

This is a basic example of two of the functions of MDBED; the rBED and the PDF_3dPlot functions. The rBED function generates jointly Exponential random values (x,y). The required inputs are the n values to be generated, the correlation coefficient, and the scale parameters of the marginal distributions. The pairs (x,y) are plotted for a better interpretation. The PDF_3dPlot function on the other hand builds a 3D plot of the joint PDF of the BED. The required inputs are the correlation coefficient and the scale parameters of the marginal distributions. This function also allows several characteristics of the plot to be set.

library(MDBED)
## basic example code
Data<-rBED(n=100,Betax=1,Betay=1,rho=0.85)
plot(Data[,1],Data[,2], xlab = "x", ylab = "y")
PDF_3dPlot(rho=0.85,Betax=1,Betay=1,GS=0.1)

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("MDBED")

1.0.0 by Luis F. Duque, 7 years ago


Browse source code at https://github.com/cran/MDBED


Authors: Luis F. Duque <[email protected]>


Documentation:   PDF Manual  


GPL-3 license


Imports Rdpack, orthopolynom, foreach, lattice, parallel, doParallel, ggplot2, graphics, psych, stats

Suggests testthat, covr


See at CRAN