Question Details

(solution) Hi, the original question is attached below. The following is the


Hi, the original question is attached below. The following is the statement I wrote on OpenBUGS, but when I set the initial values on OpenBUGS, as below:

initial value

list(psi0=500, tausq0=0.001)

list(psi0=100, tausq0=1)

list(psi0=0, tausq0=0.00001)

I got "initial values loaded but chain contains uninitialized variables". How should I solve this problem? After this step, how should I proceed the question c and d? Any advise for step on OpenBUGS?

Thanks very much for help!

PS:

model

{

for(i in 1:n){

psihat[i] ~ dnorm(psi[i], tausq[i])

psi[i] ~ dnorm(psi0, tausq0)

tausq[i] <- 1 / pow(sigma[i],2)

}

psi0 ~ dflat()

tausq0 ~ dgamma(0.001, 0.001)

sigmasq0 }


list(

n=12,

psihat = c(1.055, -0.097, 0.626, 0.017, 1.068, -0.025, -0.117, -0.381, 0.507, 0.000, 0.385, 0.405),

sigma = c(0.373, 0.116, 0.229, 0.117, 0.471, 0.120, 0.220, 0.239, 0.186, 0.328, 0.206, 0.254)

)


list(psi0=500, tausq0=0.001)

list(psi0=100, tausq0=1)

list(psi0=0, tausq0=0.00001)

 


Solution details:

Pay using PayPal (No PayPal account Required) or your credit card . All your purchases are securely protected by .
SiteLock

About this Question

STATUS

Answered

QUALITY

Approved

DATE ANSWERED

Sep 13, 2020

EXPERT

Tutor

ANSWER RATING

GET INSTANT HELP/h4>

We have top-notch tutors who can do your essay/homework for you at a reasonable cost and then you can simply use that essay as a template to build your own arguments.

You can also use these solutions:

  • As a reference for in-depth understanding of the subject.
  • As a source of ideas / reasoning for your own research (if properly referenced)
  • For editing and paraphrasing (check your institution's definition of plagiarism and recommended paraphrase).
This we believe is a better way of understanding a problem and makes use of the efficiency of time of the student.

NEW ASSIGNMENT HELP?

Order New Solution. Quick Turnaround

Click on the button below in order to Order for a New, Original and High-Quality Essay Solutions. New orders are original solutions and precise to your writing instruction requirements. Place a New Order using the button below.

WE GUARANTEE, THAT YOUR PAPER WILL BE WRITTEN FROM SCRATCH AND WITHIN A DEADLINE.

Order Now