Learn R Programming

prabclus (version 2.0-2)

summary.prabtest: Print and summary method for prabtest

Description

Useful compression of the results of prabtest.

Usage

summary.prabtest(object, ...)

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

Arguments

object
object of class 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, pdfnbdirectly taken from object, see prabtest.

See Also

prabtest

Examples

Run this code
data(kykladspecreg)
# Note: If you do not use the installed package, replace this by
# kykladspecreg <- read.table("(path/)kykladspecreg.dat")
data(nb)
# Note: If you do not use the installed package, replace this by
# nb <- list()
# for (i in 1:34)
#   nb <- c(nb,list(scan(file="(path/)nb.dat",
#                   skip=i-1,nlines=1)))
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