PlotsML: Cumulative Distribution Plot and Kernel Density Plot for the...

PlotsMLR Documentation

Cumulative Distribution Plot and Kernel Density Plot for the Fitted GB2

Description

Function plotsML.gb2 produces two plots. The first is a plot of the empirical cumulative distribution function versus the fitted cumulative distibution function. The second is a plot of the kernel density versus the fitted GB2 density. Function saveplot saves locally the produced plot.

Usage

plotsML.gb2(z, shape1, scale, shape2, shape3, w=rep(1,length(z))) 
saveplot(name, pathout)

Arguments

z

numeric; vector of data values.

w

numeric; vector of weights. Must have the same length as z. By default w is a vector of 1.

shape1

numeric; positive parameter.

scale

numeric; positive parameter.

shape2, shape3

numeric; positive parameters of the Beta distribution.

name

string; the name of the plot.

pathout

string; the path of the folder or device where the plot will be saved.

Details

The used kernel is "Epanechnikov" (see plot).

Author(s)

Monique Graf and Desislava Nedyalkova


GB2 documentation built on June 22, 2022, 9:07 a.m.

Related to PlotsML in GB2...