Use the internal table mapping to transform the internal data into the form used by the imported model.

map_varnames(data = NULL, outcome = "overweight-4y", version = "20230905")

Arguments

data

Target data, e.g. as produced by collect_predictors()

outcome

Character. Currently only "overweight-4y"

version

Character. Version number.

Value

A tibble with 1 row containing person data

Examples

library(bdsreader)
fn <- system.file("examples/test.json", package = "bdsreader")
m <- bdsreader::read_bds(fn)
x <- collect_predictors(m, purpose = "model")
ex <- map_varnames(x)