arithmean.GB2: Mean of the Generalised Beta Distribution of Second Kind

Description Usage Arguments Value Author(s) References Examples

Description

This function calculates the expectation of the Generalised Beta Distribution of Second Kind.

Usage

1
arithmean.GB2(b, a, p, q)

Arguments

b

the parameter b of the Dagum distribution as defined by Kleiber and Kotz (2003).

a

the parameter a of the Dagum distribution as defined by Kleiber and Kotz (2003).

p

the parameter p of the Dagum distribution as defined by Kleiber and Kotz (2003).

q

the parameter q of the Dagum distribution as defined by Kleiber and Kotz (2003).

Value

returns the expectation.

Author(s)

Alexander Sohn

References

Kleiber, C. and Kotz, S. (2003): Statistical Size Distributions in Economics and Actuarial Sciences, Wiley, Hoboken.

Examples

1
2
3
4
5
6
7
8
a.test<- 4
b.test<- 20000
p.test<- 0.7
q.test<- 1
alpha.test<-1
GB2sample<-rGB2(10000,b.test,a.test,p.test,q.test)
arithmean.GB2(b.test,a.test,p.test,q.test)
mean(GB2sample)

Example output

Loading required package: gamlss
Loading required package: splines
Loading required package: gamlss.data

Attaching package: 'gamlss.data'

The following object is masked from 'package:datasets':

    sleep

Loading required package: gamlss.dist
Loading required package: MASS
Loading required package: nlme
Loading required package: parallel
 **********   GAMLSS Version 5.1-3  ********** 
For more on GAMLSS look at http://www.gamlss.org/
Type gamlssNews() to see new features/changes/bug fixes.

Loading required package: Hmisc
Loading required package: lattice
Loading required package: survival
Loading required package: Formula
Loading required package: ggplot2

Attaching package: 'Hmisc'

The following objects are masked from 'package:base':

    format.pval, units

[1] 19474.67
[1] 19473.55

acid documentation built on May 1, 2019, 10:14 p.m.