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) |
obj |
list, result of regSGB. See |
weight |
vector of length |
Details
Let follow a
distribution. Then the composition
is called the -transform of
.
follows a
distribution and each part
is Beta-distributed with parameters
(shape2[i],sum(shape2)-shape2[i])
.
Goodness of fit plots are produced for the parts of the -transforms against the Beta distribution. Each function creates
plots, where
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
plots are produced comparing the marginal distribution of the parts of the
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)