studpermu.test.pp3: Studentised Permutation Test

View source: R/rapt_extend.R

studpermu.test.pp3R Documentation

Studentised Permutation Test

Description

Perform a studentised permutation test for a difference between groups of point patterns

Usage

## S3 method for class 'pp3'
studpermu.test(
  X,
  formula,
  summaryfunction = K3est,
  ...,
  nperm = 999,
  use.Tbar = FALSE,
  rinterval = NULL,
  minpoints = 20,
  rmax = NULL,
  nrval = 128
)

Arguments

X

A hyperframe containing at least the point patterns and groups

formula

Formula describing the grouping. The left side of the formula identifies which column of X contains the point patterns. The right side identifies the grouping factor

summaryfunction

Summary function applicable to pp3. Defaults to link[spatstat.core]{K3est}

...

Additional arguments passed to summaryfunction

nperm

Number of random permutations for the test; defaults to 999

use.Tbar

Logical value indicating choice of test statistic. If TRUE, use the alternative test statistic, which is appropriate for summary functions with roughly constant variance, such as K(r)/r or L(r). Defaults to FALSE

rinterval

Numeric of length 2. Experimental

minpoints

Minimum permissible number of points in a point pattern for inclusion in the test calculation

Details

This function performs the studentized permutation test of Hahn (2012) for a difference between groups of point patterns.

A group needs to contain at least two point patterns with at least minpoints points in each pattern.

The function returns an object of class "htest" and "studpermutest" that can be printed and plotted. The printout shows the test result and p-value. The plot shows the summary functions for the groups (and the group means if requested).

Value

An object of class "studpermutest".

References

Hahn, U. (2012) A studentized permutation test for the comparison of spatial point patterns. Journal of the American Statistical Association 107 (498), 754-764.

See Also

studpermu.test, link[spatstat.core]{plot.studpermutest}

Other spatstat extensions: G3cross(), G3multi(), K3scaled(), Tstat.pp3(), bdist.points(), marktable.pp3(), marktable(), quadratcount.pp3(), quadrats.pp3(), rPoissonCluster3(), rjitter.pp3(), rjitter.ppp(), rjitter(), rpoint3(), sample.pp3(), sample.ppp(), shift.pp3(), studpermu.test(), superimpose.pp3()


aproudian2/rapt documentation built on Dec. 15, 2022, 4:24 a.m.