CStable: Display Performance Criteria Across Method

View source: R/CStable.R

CStableR Documentation

Display Performance Criteria Across Method

Description

Function to display the results of the performance analysis and produce an xtable() for input into LaTeX.

Usage

CStable(
  d = 1,
  agEval,
  m = names(agEval[[1]][[1]][[1]]),
  crit = "MSE",
  f = "median",
  cross_section = "g",
  layer_type = "method",
  fixedIndex = NULL,
  collapse = T
)

Arguments

d

An integer that is the index of the dataset of interest

agEval

A list object (result of agEval.R) of aggregated performance metrics

m

A vector of the interpolation methods of interest

crit

A character string describing the performance metric of interest

f

"mean" or "median" (default); which statistic to use for f(p,g)

cross_section

"g" or "p"; specifies which variable to hold constant in the table (gap width or proportion missing)

fixedIndex

An integer specifying the index position of the variable in "fixed" to hold constant in the table

collapse

logical; Generate a table collapsing across the fixed variable (T), or select a fixed index (over 'fixed') (F)


castels/interpTools documentation built on June 7, 2024, 4:20 p.m.