Learn R Programming

prabclus (version 2.1-2)

summary.prabtest: Print and summary method for prabtest

Description

Useful compression of the results of prabtest.

Usage

## S3 method for class 'prabtest':
summary(object, above.p=object$teststat \%in\%
         c("groups","inclusions","mean"),
         group.outmean=FALSE,...)

## S3 method for class 'summary.prabtest': print(x, ...)

Arguments

object
object of class prabtest.
above.p
logical. TRUE means that for output from abundtest the p-value is p.above, otherwise p.below.
group.outmean
logical. If TRUE and object$teststat="groups", statistics concerning the mean of all dissimilarities are given out by print.summary.prabtest.
x
object of class summary.prabtest.
...
no meaning, necessary for print and summary methods.

Value

  • summary.prabtest produces an object of class summary.prabtest, which is a list with components
  • rrangerange of the simulation results (test statistic values) of object.
  • rmeanmean of the simulation results (test statistic values) of object.
  • datac, p.value, pd, tuning, teststat, distance, times, pdfnb, abund, sarlambdadirectly taken from object, see prabtest and abundtest.
  • groupinfoif object$teststat="groups", components rrangeg (matrix of group-wise ranges of test statistic value), rmeang (vector of group-wise means of test statistic value), rrangem (range over simulations of overall mean of within-group dissimilarities), rmeanm (mean over simulations of overall mean of within-group dissimilarities) are added to the list object$groupinfo, and this is given out.

See Also

prabtest, abundtest

Examples

Run this code
data(kykladspecreg)
data(nb)
set.seed(5678)
kprab <- prabinit(prabmatrix=kykladspecreg, neighborhood=nb)
kpt <- prabtest(kprab, times=5, pd=0.35, teststat="lcomponent")
# The parameters times and
# pd are only given to fasten the example execution.
summary(kpt)

Run the code above in your browser using DataLab