search for: logdens2

Displaying 1 result from an estimated 1 matches for "logdens2".

Did you mean: logdens
2007 Mar 05
1
error message when using outer function
Dear R-users, I have two sets of code that appear to me to be equivalent, shown below, and yet I get the error message "Error in dim(robj) <- c(dX, dY) : dim<- : dims [product 4] do not match the length of object [1]" after executing the assignment to logdens2. Both functions post.a1 and post.a2 return the same values when run alone and not embedded in the function outer. I would appreciate help in understanding the differences between these two sets of code. The code in post.a1 is from Gelman, Carlin, Stern, and Rubin's Bayesian Data Analysis s...