title: Expected value command R and JAGS
body: <p>Assuming this ís my Bayesian model, how can i calculate the expected value of my Weibull distribution? Is there a command for finding the expected value of the Weibull distribution in R and JAGS?  Thanks</p>
  
  <pre><code>model{  
  #likelihood function  
  for (i in 1:n)   
      {  
          t[i] ~ dweib(v,lambda)#MTBF    
  
          }    
  
  #Prior for MTBF  
  v ~ dgamma(0.0001, 0.0001)   
  lambda ~ dgamma(0.0001, 0.0001)     
    }  
  
    #inits
  list(v=1, lambda=1,mu=0,tau=1)
  
  #Data
  list(n=10, t=c(5.23333333,8.95,8.6,230.983333,1.55,85.1,193.033333,322.966667,306.716667,1077.8)
  </code></pre>