55  Statistical Topics

Table 55.1 summarizes the S3 generic functions, or the “pseudo” S3 methods, for statistical functionalities implemented in these packages and/or covered in this Quarto book, and where to find them.

Table 55.1: Index of Statistical Topics
Topic S3 Generic Function, or “Pseudo” S3 Method Where to Find
A
aggregation stats::aggregate() of vectorlist (Section 41.4), of hyperframe (Section 26.6)
aggregate marks-statistics aggregate_marks() (Table 36.7) of ppp (Section 36.7), of ppplist (Section 37.4), of hyperframe (Section 26.7)
append to (existing) marks `append_marks<-` (Table 36.9) of ppp (Section 36.9), of psp (Section 38.2), of tess (Section 40.2)
attribute per element attr_ (Table 15.3) of anylist (Section 15.4), of hyperframe (Section 26.10)
F
function-value, recommended, etc. keyval() (Table 20.3) of fv (Section 20.2), of fvlist (Section 21.4), of hyperframe (Section 26.14)
function-value, replace with theoretical values .illegal2theo() (Table 20.5), .disrecommend2theo() (Table 20.6) of fv (Section 20.5.1), of fvlist (Section 21.5), of hyperframe (Section 26.16)
function-value-tables from eligible marks, batch process Emark_(), Vmark_(), etc. (Table 36.19) of ppp (Section 36.14), of ppplist (Section 37.9), of hyperframe (Section 26.13)
G
global envelope test, batch process global_envelope_test_() (Table 15.2) of anylist (Section 15.3), of hyperframe (Section 26.12)
grouped hyper data frame, to create as.groupedHyperframe() (Table 18.2) from data.frame (Section 18.1), from groupedData (Section 24.1), from hyperframe (Section 26.8)
I
interpolation approxfun.*(), splinefun.*() of fv (Section 20.6)
K
kernel density (Becker, Chambers, and Wilks 1988) estimates kerndens() (Table 33.2) of numeric vector (Section 33.1), of anylist (Section 15.1), of hyperframe (Section 26.4)
kernel density (Becker, Chambers, and Wilks 1988) of numeric marks density_marks() (Table 36.4) of ppp (Section 36.4), of ppplist (Section 37.2)
kernel density (Becker, Chambers, and Wilks 1988) estimates of numeric marks kerndens() (Table 33.2) of ppp (Section 36.4), of ppplist (Section 37.2), of hyperframe (Section 26.4)
\(k\)-means clustering (Hartigan and Wong 1979) kmeans.*() of ppp (Section 36.11), of ppplist (Section 37.7), of hyperframe (Section 26.17)
M
Math group-generic methods::Math() (Table 36.2, Table 36.3, Table 37.2) of numeric marks in ppp (Section 36.3), psp (Section 38.1), ppplist (Section 37.5) and tess (Section 40.1), of fvlist (Section 21.7), of hyperframe (Section 53.3)
Q
quantile stats::quantile() (Table 36.6) of anylist (Section 15.2), of hyperframe (Section 26.5)
quantile of numeric marks stats::quantile() (Table 36.6) of ppp (Section 36.5), of ppplist (Section 37.3), of hyperframe (Section 26.5)
R
random re-labelling envelope residual rlabelRes() (Table 36.18) of ppp (Section 36.13), of ppplist (Section 37.8), of hyperframe (Section 26.12)
\(r_\text{max}\), default .rmax() (Table 36.11) of ppp (Section 36.10), of fv (Section 20.4), of ppplist (Section 37.6), of hyperframe (Section 26.11)
\(r_\text{max}\), legal of fv (Section 20.5)
S
smoothing loess.*() of fv (Section 20.6)
split, by \(k\)-means clustering base::split() (Table 36.14) of ppp (Section 36.11.2), of ppplist (Section 37.7.1), of hyperframe (Section 26.17.2)
split (default method) base::split.default() on anylist (Section 15.5)
superimpose spatstat.geom::superimpose() of hyperframe (Section 26.9)
T
Tjøstheim (1978)’s coefficient, pairwise pairwise_cor_spatial() (Table 36.15) of ppp (Section 36.12), of ppplist (🚧)
trapezoidal integration pracma::trapz(), pracma::cumtrapz() theory (Chapter 11)
trapezoidal integration, (cumulative) average vertical height vtrapz(), cumvtrapz() (Table 11.1) theory (Section 11.1), of numeric vector (Section 33.2), of fv (Section 20.3, Figure 11.6), of fvlist (Section 21.6), of hyperframe (Section 26.15)
trapezoidal integration, (cumulative) average vertical height, visualize visualize_vtrapz() (Table 11.2) gallery (Section 11.2), of numeric vector (Section 33.2), of function (Section 19.1), of fv (Section 20.3, Figure 11.6), of listof (Section 30.1)

Table 55.2 keeps track of the number of S3 generic functions, S3 methods and all other functions in these package.

Listing 55.1: Table: Number of S3 generic functions and methods in these package
Code
c('groupedHyperframe', 'groupedHyperframe.random', 'hyper.gam', 'maxEff') |>
  lapply(FUN = \(pkg) {
    ns = pkg |> getNamespace()
    nm = ns |> 
      as.list.environment() |>
      names()
    id_generic = nm |>
      vapply(FUN = sloop::is_s3_generic, env = ns, FUN.VALUE = NA)
    id_method = nm |>
      vapply(FUN = sloop::is_s3_method, env = ns, FUN.VALUE = NA)
    list(
      'Package' = sprintf(fmt = '**`%s`** (v%s)', pkg, packageVersion(pkg)),
      '`S3` Generic' = sum(id_generic),
      '`S3` Method' = sum(id_method),
      'Other Function' = sum(!id_generic & !id_method)
    )
  }) |>
  c(list(f = c)) |>
  do.call(what = Map, args = _) |>
  as.data.frame.list(check.names = FALSE) |>
  knitr::kable(
    caption = 'Number of `S3` generic functions and methods in *these package*'
  )
Table 55.2: Number of S3 generic functions and methods in these package
Package S3 Generic S3 Method Other Function
groupedHyperframe (v0.3.2.20251225) 23 99 37
groupedHyperframe.random (v0.2.0.20251221) 0 0 3
hyper.gam (v0.2.1.20151215) 2 7 7
maxEff (v0.2.1) 1 14 6