This function separates the target correlation matrix rho by variable type (ordinal, continuous, Poisson, and/or
Negative Binomial). The function is used in findintercorr
,
rcorrvar
, findintercorr2
, and
rcorrvar2
. This would not ordinarily be called directly by the user.
separate_rho(k_cat, k_cont, k_pois, k_nb, rho)
the number of ordinal (r >= 2 categories) variables
the number of continuous variables
the number of Poisson variables
the number of Negative Binomial variables
the target correlation matrix
a list containing the target correlation matrix components by variable combination