# intermediate.corr.P_BO: Computes the pairwise entries of the intermediate normal... In PoisBinOrd: Data Generation with Poisson, Binary and Ordinal Components

## Description

This function computes the pairwise entries of the intermediate normal correlation matrix for all Poisson-binary and Poisson-ordinal variable combinations given the specified correlation matrix as formulated in Amatya and Demirtas (2015).

## Usage

 ```1 2``` ```intermediate.corr.P_BO(n.P, n.B, n.O, lambda.vec = NULL, prop.vec = NULL, prop.list = NULL, corr.vec = NULL, corr.mat = NULL) ```

## Arguments

 `n.P` Number of Poisson variables. `n.B` Number of binary variables. `n.O` Number of ordinal variables. `lambda.vec` Rate vector for Poisson variables `prop.vec` Probability vector for binary variables. `prop.list` A list of probability vectors for ordinal variables. `corr.vec` Vector of elements below the diagonal of correlation matrix ordered column-wise. `corr.mat` Specified correlation matrix.

## Value

A matrix of n.P*(n.B+n.O)

## References

Amatya, A. and Demirtas, H. (2015). Simultaneous generation of multivariate mixed data with Poisson and normal marginals. Journal of Statistical Computation and Simulation, 85(15), 3129-3139.

`intermediate.corr.PP`, `intermediate.corr.BO`
 ``` 1 2 3 4 5 6 7 8 9 10 11 12 13``` ```## Not run: n.P<-1 n.B<-1 n.O<-1 lambda.vec<-c(1) prop.vec<-c(0.3) prop.list<-list(c(0.3,0.6)) corr.mat=matrix(c(1,0.2,0.1,0.2,1,0.5,0.1,0.5,1),3,3) intmatP_BO=intermediate.corr.P_BO(n.P,n.B,n.O,lambda.vec,prop.vec,prop.list, corr.vec=NULL,corr.mat) ## End(Not run) ```