collect_predictors.RdFill risk predictor data with target person data
collect_predictors(tgt = NULL, outcome = "overweight-4y", purpose = "tab10")A tibble with 1 row containing person data
library(bdsreader)
#>
#> Attaching package: ‘bdsreader’
#> The following object is masked from ‘package:bdsmodels’:
#>
#> table34
fn <- system.file("examples/test.json", package = "bdsreader")
fn <-system.file("extdata/bds_v2.0/smocc/Anne_S.json", package = "jamesdemodata")
fn <-system.file("extdata/bds_v2.0/smocc/Laura_S.json", package = "jamesdemodata")
m <- bdsreader::read_bds(fn, append_ddi = TRUE)
tgt <- m
x <- collect_predictors(m, purpose = "tab10")