powered by
Calculate J bivariate normal densities (both dimensions are independent) under fitted csmGmm.
calc_dens_ind_2d(x, Zmat)
A J*1 vector of densities for each row of Zmat.
2*1 vector of means.
J*2 matrix of test statistics.
x <- c(0, 0) Zmat <- cbind(rnorm(10^5), rnorm(10^5)) calc_dens_ind_2d(x, Zmat)
Run the code above in your browser using DataLab