I'm trying to plot a theoretical marginal posterior, but whenever I type in the code, it comes up as: Error in curve( .....), 'expr' did not evaluate to an object of length 'n'. I'm not sure what it means and what I have to do to correct it.
Code: curve(dnorm(x,beta1samples[[1]],sqrt(diag(S)[1]),log=FALSE))
Maybe
plot(x, dnorm(x,beta1samples[[1]],sqrt(diag(S)[1])))
is what you want. If not please explain what x, beta1samples[[1]] and diag(S)[1] are.
This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.