Learn R Programming

MCCM (version 0.1.0)

Phixy: Scaled Bivariate Normal Approximation

Description

Standard bivariate normal distribution approximated with Legendre polynomials.

Usage

Phixy(x, y, rho, korder = 3, app = TRUE)

Value

P(X<=x,Y<=y).

Arguments

x, y

P(X<=x,Y<=y).

rho

correlation coefficient.

korder

order of Legendre approximation.

app

bool value TRUE for approximation, FALSE for integral.

Examples

Run this code
library(mvtnorm)
pmvnorm(upper = c(1,-1),sigma = matrix(c(1,0.5,0.5,1),2,2))
Phixy(1,-1,0.5,2,app=TRUE)
Phixy(1,-1,0.5,app=TRUE)

Run the code above in your browser using DataLab