[R] Package distr and define your own distribution

Dr. Matthias Kohl Matthias.Kohl at stamats.de
Sat Feb 12 09:41:20 CET 2011


Dear Gabriel,

it is possible. You can define a new class or just an object of an 
already existing class.

Did you look at:
library(distr)
vignette("newDistributions")

as well as
?AbscontDistribution
?DiscreteDistribution

Please let me know if you have further questions!

Best
Matthias

On 11.02.2011 16:05, Gabriel.Cardi at ubs.com wrote:
>
> Hi all
> I  am using the Package "distr" (and related)
>
> Do you know if it is possible to define your own distribution (object)
> GIVEN that you have an analytical form of the probability density
> function (pdf) ?
>
> I would then like to use the standard feature of the "distr" and related
> packages.
>
>
> Best regards
>
> Giuseppe Gabriel Cardi
>
>
>
>
> ______________________________________________
> R-help at r-project.org 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.

-- 
Dr. Matthias Kohl
www.stamats.de



More information about the R-help mailing list