MarginPlots {SGB}R Documentation

Histograms, quantile and probability plots for the z(u)-transforms of parts

Description

These functions draw a plot for each part in the dataset.

Usage

hzbeta(u, obj, weight = rep(1,dim(u)[1]) )
qzbeta(u, obj, weight = rep(1,dim(u)[1]) )
pzbeta(u, obj, weight = rep(1,dim(u)[1]) )

Arguments

u

data matrix of compositions (independent variables) (N×D)(N \times D); DD: number of parts

obj

list, result of regSGB. See regSGB.

weight

vector of length nn; positive observation weights, default rep(1,n).

Details

Let UU follow a SGB(shape1,scale,shape2)SGB(shape1,scale,shape2) distribution. Then the composition

Z=C[(U/scale)shape1]Z=C[(U/scale)^{shape1}]

is called the z(u)z(u)-transform of UU.
ZZ follows a Dirichlet(shape2)Dirichlet(shape2) distribution and each part Zi,i=1,...,DZ_i, i=1,...,D is Beta-distributed with parameters (shape2[i],sum(shape2)-shape2[i]).
Goodness of fit plots are produced for the parts of the z(u)z(u)-transforms against the Beta distribution. Each function creates DD plots, where DD is the number of parts.
hzbeta: histograms and the corresponding Beta-densities,
qzbeta: marginal quantile plots,
pzbeta: marginal probability plots.
If weight is specified, weighted histgrams, quantile and probability plots are drawn.

Value

DD plots are produced comparing the marginal distribution of the parts of the z(u)z(u) compositions with the theoretical Beta distribution.

Examples

## Arctic lake data
data(arc)
# Compositions
ua <- arc[,1:3]

# SGB regression
data(oilr)

# plot
par(mfrow=c(3,3))
hzbeta(ua,oilr)
qzbeta(ua,oilr)
pzbeta(ua,oilr)

[Package SGB version 1.0.1.1 Index]