[R] Confidence intervals for beta distribution
    Richard.Cotton at hsl.gov.uk 
    Richard.Cotton at hsl.gov.uk
       
    Thu Jan  3 16:25:58 CET 2008
    
    
  
> Sorry if this is too trivial. Is there a way to get confidence intervals 
for a
> beta distribution? e.g. Is this wrong for calculating the 2.5% lower CI 
for a
> distribution with parameters 13.2 and 691?
> 
> qbeta(0.025, 13.2, 691)
This looks fine.
> Also, is there a way to get CI for a dirichlet distribution?
The package gtools has functions for generating random dirichlet 
variables.  Not quite what you wanted, I know, but you can get an estimate 
of percentiles by calling quantile(rdirichlet(...), ...).
Regards,
Richie.
Mathematical Sciences Unit
HSL
------------------------------------------------------------------------
ATTENTION:
This message contains privileged and confidential inform...{{dropped:20}}
    
    
More information about the R-help
mailing list