mco_init {drdR} | R Documentation

## Create new MCO classifier object

### Description

The resulting object contains a set of ATIH tables, pricing and institutional unit authorizations that will be used to classify stays.

### Usage

    mco_init(
      table_dirs,
      authorization_filename = NULL,
      table_filenames = character(0),
      default_sector = NULL
    )

### Arguments

`table_dirs` | Paths to directories containing classification tables.
`authorization_filename` | Path to FICUM file, or NULL.
`table_filenames` | Paths to additional classification table files.
`default_sector` | Default sector 'Public' or 'Private'.

### Details

A typical call should look like this: `m <- mco_init('path/to/tables', 'path/to/FICUM.txt', default_sector = 'Public')`

The `default_sector` parameter can be overriden in functions that need sector information such as `mco_classify()`.

### Value

A classifier object that can be used by `mco_classify()` and a varierty of other functions.

[Package drdR version 2020.09.21 Index]