Learn R Programming

NORTARA (version 1.0.0)

valid_input_cormat: Computes the lower and upper correlation bounds for the input marginals.

Description

The function computes the lower and upper correlation bounds for the input marginals.

Usage

valid_input_cormat(invcdfnames, paramslists)

Arguments

invcdfnames
A character sequence of the marginals' inverse cdf names.
paramslists
A list contains lists of params of the marginals as the same order as invcdfnames.

Value

A list of two matrices. The min_valid_cormat contains the lower bounds and the max_valid_cormat contains the upper bounds of the feasible correlations.

Details

The function computes the lower and upper correlation bounds for the input marginals. And returns a list of lower and upper correlation matrices for the target correlations based on the marginals, the matrices' dimensions are decided by the length of invcdfnames.

References

Demirtas, H., Hedeker, D. (2011). A practical way for computing approximate lower and upper correlation bounds. The American Statistician, 65(2):104-109.

See Also

BoundingRA, check_input_cormat, genNORTARA

Examples

Run this code
## Not run: 
# invcdfnames <- c("qt","qpois","qnorm")
# paramslists <- list(
#                m1 = list(df = 3),
#                m2 = list(lambda = 5),
#                m3 = list(mean = 0, sd = 1)
#                  )
# valid_input_cormat(invcdfnames, paramslists)
# ## End(Not run)

Run the code above in your browser using DataLab