[R] Generic distributions

Greg Snow Greg.Snow at intermountainmail.org
Tue Mar 6 23:11:16 CET 2007


I think the distr package does this.  There are also packages that link
to winbugs if that is what you really want to do.

-- 
Gregory (Greg) L. Snow Ph.D.
Statistical Data Center
Intermountain Healthcare
greg.snow at intermountainmail.org
(801) 408-8111
 
 

> -----Original Message-----
> From: r-help-bounces at stat.math.ethz.ch 
> [mailto:r-help-bounces at stat.math.ethz.ch] On Behalf Of 
> Alberto Monteiro
> Sent: Tuesday, March 06, 2007 1:38 PM
> To: r-help at stat.math.ethz.ch
> Subject: [R] Generic distributions
> 
> Is there any class that generalizes distributions?
> 
> For example, I could say
> x <- generic_distribution("normal", list(mean=1, sigma=0.5)) 
> and then use it like rgeneric_distribution(100, x) to get a 
> sample of 100, or pgeneric_distribution(0.5, x) to get the 
> pdf at (x = 0.5).
> 
> In the openbugs/winbugs package, that uses a language that 
> looks like R/S, we can do things like x ~ dnorm(mu, tau), 
> forget that x is a normal with mean mu and variance 1/tau, 
> and then treat it generically.
> 
> Alberto Monteiro
> 
> PS: this is noise... but due to spam invasion, anything that 
> increases the nonspam/spam ratio should be welcome :-)
> 
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide 
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>



More information about the R-help mailing list