This file contains convenience functions for creating studies with minimal configuration. These functions provide simplified interfaces for common study types. Create longitudinal study data
Usage
create_longitudinal_study(
study_id = "STUDY-001",
participants = 100,
sites = 10,
snapshots = 5,
interval = "1 month",
domains = c("AE", "LB", "VISIT"),
run_analytics = FALSE,
analytics_package = NULL,
analytics_workflows = NULL,
run_reporting = FALSE,
outlier_intensity = 1,
risk_profile = NULL,
verbose = FALSE
)Arguments
- study_id
Study identifier
- participants
Number of participants
- sites
Number of sites
- snapshots
Number of snapshots
- interval
Time between snapshots (e.g., "1 month", "2 weeks")
- domains
Clinical domains to include
- run_analytics
Whether to run the analytics pipeline (default FALSE)
- analytics_package
Package containing workflows (optional)
- analytics_workflows
Specific workflows to run (optional)
- run_reporting
Whether to run the reporting pipeline after analytics (default FALSE)
- outlier_intensity
Global multiplier for outlier-like values in domain generators.
- risk_profile
Optional named list controlling site-targeted consecutive-run injection. Only
Raw_VScurrently supports it.NULLuses the generator defaults. Recognized fields aredPctRedanddPctAmber(share of sites in each band),nWindowLength(rolling window length, whole number>= 2),dRateNormal/dRateAmber/dRateRed(target repeat rate per band), andvVitals(character vector of vitals to target, orNULLfor all eight). Fields can be given at three levels, with more specific levels overriding less specific ones:Top level: applies to every domain that supports it.
Domain level:
list(Raw_VS = list(dPctRed = 0.3)).Vital level:
list(Raw_VS = list(sysbp = list(dRateRed = 0.6))). Each vital's bands are allocated independently, so vitals can have different profiles. The targeted vitals are the domain'svVitalsif given (named vitals must then be among them), else the vitals the domain names, else the top-levelvVitals, else all eight.vVitalscannot be set inside a vital.
- verbose
Whether to print progress/output messages