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))