Learn R Programming

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)

Copy Link

Version

Install

install.packages('MDBED')

Monthly Downloads

141

Version

1.0.0

License

GPL-3

Maintainer

Luis Duque

Last Published

February 21st, 2020

Functions in MDBED (1.0.0)

CDF_3dPlot

3D plot of the joint CDF of the bivariate exponential distribution (BED) based on the Moran-Downton model
CondBED

Conditional distribution of Y given X=x of the bivariate exponential distribution (BED) based on the Moran-Downton model
Contour_Plot

Contour plot of the bivariate exponential distribution (BED) based on the Moran-Downton model
PDF_3dPlot

3D plot of the joint PDF of the bivariate exponential distribution (BED) based on the Moran-Downton model
rBED

Bivariate generator of the bivariate exponential distribution (BED) based on the Moran-Downton model
dBED

Joint density function of the bivariate exponential distribution (BED) based on the Moran-Downton model
pBED

Joint CDF of the bivariate exponential distribution (BED) based on the Moran-Downton model