Last data update: 2014.03.03

R: Generalized F pdf
dgenFR Documentation

Generalized F pdf

Description

Computes the pdf of the generalized F distribution

Usage

dgenF(x, beta = 0, sigma = 1, m1 = 1, m2 = 1)

Arguments

x

scale or vector of positive values at which the pdf needs to be computed

beta

the value of beta parameter, can be any real

sigma

the value of sigma parameter, must be positive

m1

the value of m1 parameter, must be positive

m2

the value of m2 parameter, must be positive

Value

An object of the same length as x, giving the pdf values computed at x

Note

If incorrect values are input for x or the model parameters then NaNs will be returned as the output. This function uses the R contributed package flexsurv.

Author(s)

Saralees Nadarajah

References

S. Nadarajah, S. A. A. Bakar, Tabulations of survival models for actuarial use, submitted

Examples

x=runif(10,min=0,max=1)
y=dgenF(x)

Results


R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> library(ActuDistns)
Loading required package: reliaR
Loading required package: actuar

Attaching package: 'actuar'

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

    cm

Loading required package: hypergeo

Attaching package: 'ActuDistns'

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

    dpareto, qpareto

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

    dchen, dgompertz, hchen, hgompertz, hgumbel, qchen, qgompertz

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

    qweibull

> png(filename="/home/ddbj/snapshot/RGM3/R_CC/result/ActuDistns/dgenF.Rd_%03d_medium.png", width=480, height=480)
> ### Name: dgenF
> ### Title: Generalized F pdf
> ### Aliases: dgenF
> ### Keywords: Generalized F distribution
> 
> ### ** Examples
> x=runif(10,min=0,max=1)
> y=dgenF(x)
> 
> 
> 
> 
> 
> dev.off()
null device 
          1 
>