knitr::opts_chunk$set( collapse = TRUE, comment = "#>" )
This note lays out the API for models in the package.
TODO:
Four basic functions:
low_level_func()
. This is simply an interface that allows calling whatever the actual model implementation is with two x
and y
arguments. predict.low_level_func()
. ds_low_level_funct()
. This wrapper takes care of two things: low_level_func()
:
x
, y
predict.low_level_func()
ds_low_level_func()
:
The DS wrapper takes the full country-year data and turns it into usable data given the DV representation needed by a lower-level model. To this end, it extracts the relevant DV variable(s) and creates a data set version that consists of features only.
predict.ds_low_level_func()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.