This function calculates the final correlation matrix based on simulated variable type (ordinal, continuous, Poisson, and/or
Negative Binomial). The function is used in rcorrvar
and
rcorrvar2
. This would not ordinarily be called directly by the user.
calc_final_corr(k_cat, k_cont, k_pois, k_nb, Y_cat, Yb, Y_pois, Y_nb)
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 ordinal (r >= 2 categories) variables
the continuous variables
the Poisson variables
the Negative Binomial variables
a correlation matrix