Skip to contents

Generates detailed frequency tables and corresponding LaTeX captions for local maxima and minima in a Morse-Smale complex. The tables include basin of attraction sizes, relative conditional expectation statistics, and relationships between critical points.

Usage

create.lmin.lmax.frequency.tables(
  MS.res,
  lmin.labels,
  lmax.labels,
  rel.condEy,
  freq.thld = 100,
  outcome.name = "outcome"
)

Arguments

MS.res

List containing Morse-Smale complex results with component MS_cx

lmin.labels

Named character vector of labels for local minima

lmax.labels

Named character vector of labels for local maxima

rel.condEy

Numeric vector of relative conditional expectations

freq.thld

Frequency threshold for filtering (default: 100)

outcome.name

Character string describing the outcome variable (default: "outcome")

Value

A list with four components:

lmax.freq.df

Data frame containing local maxima statistics

lmin.freq.df

Data frame containing local minima statistics

lmax.caption

LaTeX caption for local maxima table

lmin.caption

LaTeX caption for local minima table

Details

For each critical point type, the function computes:

  1. Basin of attraction sizes

  2. Maximum and minimum relative conditional expectations within each basin

  3. Range of relative conditional expectations (Delta)

  4. Number of complementary critical points (minima for maxima and vice versa)