Gabriel.Cardi at ubs.com
2011-Feb-11 15:05 UTC
[R] Package distr and define your own distribution
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
-------------- next part --------------
Visit our website at http://www.ubs.com
This message contains confidential information and is in...{{dropped:21}}
Dr. Matthias Kohl
2011-Feb-12 08:41 UTC
[R] Package distr and define your own distribution
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