Example 1: Reproduce the Error Message – non-conformable arguments In this example, I’ll explain how to reproduce the error message “non-conformable arguments” in R. Let’s assume that we want to multiply our two data objects. Then, we might try to execute the following R code: m1%*...
(draw in 1:draws) { # Draw conditional mean parameters a <- post_normal(y, x, u_sigma_i, a_mu_prior, a_v_i_prior) # Draw variance-covariance matrix u <- y - matrix(a, k) %*% x # Obtain residuals u_sigma_scale_post <- solve(u_sigma_scale_prior + tcrossprod(u)) u_...