convert_bds_individual: Convert json BDS data for single individual to class...

Description Usage Arguments Value Author(s) See Also Examples

View source: R/convert_bds_individual.R

Description

This function takes data from a json source and saves it as a an object of class individual. The function automatically calculates standard deviation scores and broken stick conditional means per visit. The function hard-codes the transformations nlreferences::transform2z() and nlreferences::transform2y().

Usage

1
convert_bds_individual(txt = NULL, schema = NULL, ...)

Arguments

txt

a JSON string, URL or file

schema

A JSON string, URL or file that selects the JSON validation schema.

...

Additional parameter passed down to fromJSON(txt, ...), new("xyz",... ) and new("bse",... ). Useful parameters are models = "bsmodel" for setting the broken stick model, or call = as.call(...) for setting proper reference standards.

Value

An object of class individual or NULL

Author(s)

Stef van Buuren 2020

See Also

individual, bse, xyz, fromJSON

Examples

1
2
fn <- system.file("extdata", "allegrosultum", "client3.json", package = "jamestest")
q <- convert_bds_individual(fn)

stefvanbuuren/minihealth documentation built on March 11, 2021, 7:10 p.m.