rMIDAS2 0.2.0

Categorical variables are now supported

Data frames containing factor, character or logical columns can be passed directly to midas_fit() and midas(). Previously any such frame was rejected by the server with an HTTP 422 “float parsing” error, because the client serialised data through as.matrix(), which coerces a mixed data frame to a character matrix.

Categorical data are now sent using the Parquet transport, which preserves column types, so the MIDAS engine fits a softmax head over the levels of a multi-level factor and a binary head over a two-level one – rather than requiring the user to one-hot encode and thereby modelling the resulting dummies as independent Bernoulli variables.

Imputations keep the column types you supplied

midas_transform() and midas() now return data frames whose columns have the classes passed to midas_fit(), including factor levels and ordering. Previously every returned column was character, because the response was rebuilt with do.call(rbind, ...), which coerces to a character matrix as soon as one column is non-numeric.

Observed values can be returned exactly

The imputation engine ingests data as float32 and returns observed cells from that downcast copy, so an observed numeric value came back as the binary32 round-trip of the input – a relative change of about 6e-8. That is invisible on standardised covariates but amounts to roughly 1e-4 on data of order 1000. Nothing was being re-estimated; the loss was purely the representation change on ingest.

Bug fixes

Documentation

rMIDAS2 0.1.1

Exported functions

Server management

Imputation

Analysis

Diagnostics

Installation