title: Prior for variances in dnorm in WinBugs
body: <p>I know that WinBugs uses precision as a parameter in <code>dnorm</code> instead of variance</p>
  
  <pre><code> model {
  
      #Likelihood
          for(i in 1:N1){
              y1[i] ~dnorm(mu,tau)
          }
  
      sigma &lt;- sqrt(1/tau)
  
      #Priors
      mu ~ dnorm(0,0.000001)
      tau~ dgamma(taumu, taus)
     }
  </code></pre>
  
  <p>My question is: if instead I want to specify the prior for <code>sigma</code> because I know its mean and variance would it be right to use the following model ?</p>
  
  <pre><code>  model {
  
      #Likelihood
          for(i in 1:N1){
              y1[i] ~dnorm(mu,tau)
          }
  
      tau &lt;- sqrt(1/sigma)
  
      #Priors
      mu ~ dnorm(0,0.000001)
      sigma ~ dnorm(sigmamu, sigmas)
     }
  </code></pre>
  
  <p>Thanks in advance</p>