[R] Need an advise for bayesian estimate

2013-01-09 Thread kyong park
Hi R bayesians, I need an advise how to resolve the two different estimates applying a traditional glm (TG) and a bayes glm (BG), and different results depending on the data formats of response data and the prior specs using bayesglm in R. I'm not familiar with bayes estimate and my colleague as

Re: [R] Get an expected value for Order Statistics by applying double integrals

2012-12-11 Thread kyong park
> D <- matrix(rnorm(M*N),nrow=M) > mean(apply(D,1,min)) > > > On Thu, Dec 6, 2012 at 1:14 PM, kyong park wrote: > >> Hi R users, >> >> >> >> I’d like to get an expected value for a minimum value from order >> statistics of sample size,

[R] Get an expected value for Order Statistics by applying double integrals

2012-12-06 Thread kyong park
Hi R users, I’d like to get an expected value for a minimum value from order statistics of sample size, say, 5 for standard normal distribution, and the formula would be 5* Integral (from -inf to Inf) x*f(x)* (1-F(x))^4,where f(x) and F(x) are a standard normal density and a cumulative dist