writeTableOfDifferences: (Calibration Performance)

Description Usage Arguments Value Examples

Description

(Calibration Performance)

Usage

1
2
writeTableOfDifferences(metrics, ranking.method, results.path,
  tabletype = c("table3", "table4"), ...)

Arguments

metrics

A list represented by the output of calcPMs.

ranking.method

A character defining the ranking method to apply. The method can be either 'ordinal' or 'interpolated', or both.

results.path

A character vector of length one. The absolute path or path relative to the working directory where a new directory named "results" will be written (if not already present). All output files will be written here. Default is the current working directory.

tabletype

A character vector of having value of either 'table3' or 'table4'.

...

Currently just the 'groupingby' argument value to be passed to tabulateMetrics. See that function for details.

Value

Writes a csv file.

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
### Non-parametric model comparison ###
# specify with argument 'tabletype' if grouping data to level of table3 (i.e. age specific)
# or level of table4 (ages pooled)
# the user choice is included in filename to allow differentiation
writeTableOfDifferences(metrics, ranking, results.path = model.list$results.path, groupingby=model.list$groupingby, tabletype = 'table3')
writeTableOfDifferences(metrics, ranking, results.path = model.list$results.path, groupingby=model.list$groupingby, tabletype = 'table4')

## End(Not run)

MichaelFolkes/ctctools documentation built on May 7, 2019, 4:56 p.m.