Creates a complete longitudinal study with sensible defaults and runs analytics
Usage
quick_longitudinal_study(
study_name = "GS-US-000-0001",
participants = 1000,
sites = 150,
months_duration = 24,
study_type = "standard",
include_pipeline = FALSE,
outlier_intensity = 1,
risk_profile = NULL,
verbose = FALSE
)Arguments
- study_name
Name of the study
- participants
Number of participants (default 1000)
- sites
Number of sites (default 150)
- months_duration
Duration in months (default 24)
- study_type
Type of study - "standard" or "endpoints"
- include_pipeline
Whether to run both the analytics and reporting pipelines (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
Examples
if (FALSE) { # \dontrun{
study <- quick_longitudinal_study(
study_name = "GS-US-123-4567",
participants = 200,
sites = 20,
months_duration = 12
)
study$study_id
length(study$raw_data)
} # }