Learn R Programming

rqlm (version 4.5-1)

SGLT2i02: Simulated example data based on a target trial emulation for SGLT2i: risk difference estimation

Description

Simulated example data representing an active-comparator new-user comparison of SGLT2i and DPP-4i initiation in older adults with type 2 diabetes. The outcome is binary at a fixed 36-month horizon. These are not patient records and provide no clinical evidence about either drug.

  • id: Unique synthetic individual identifier; one row per individual.

  • A: Treatment indicator: 0 for DPP-4i and 1 for SGLT2i.

  • treatment: Treatment factor with levels DPP-4i and SGLT2i.

  • death36: Simulated all-cause death by 36 months, coded 0/1.

  • age: Baseline age in years.

  • female: Female indicator, coded 0/1.

  • bmi: Body mass index in kg/m^2.

  • hba1c: Glycated haemoglobin in percent.

  • egfr: Estimated glomerular filtration rate in mL/min/1.73 m^2.

  • proteinuria: Proteinuria indicator, coded 0/1.

  • prior_heart_failure: History of heart failure, coded 0/1.

  • prior_stroke: History of stroke, coded 0/1.

  • recent_hospitalization: Recent hospitalization indicator, coded 0/1.

  • trial_period: Factor identifying the synthetic treatment-initiation period.

  • risk_score: Fixed baseline-covariate score used in the simulation; not a validated clinical score.

  • followup_months: Common ascertainment horizon, equal to 36 for every individual; not an event time.

Usage

data(SGLT2i02)

Arguments

Format

A data frame with 700 observations and 16 variables.

Details

The datasets were independently simulated and include no participant records from the motivating study. They are intended solely for education, software testing, and reproducible examples; numerical results obtained from them have no clinical interpretation.

References

Noma, H., Goto, A., Sugimoto, T., Sunada, H., Oda, F., Maeda, M., and Fukuda, H. (2026). Real-world effectiveness of SGLT2 inhibitors in adults aged 75 years or older: a target trial emulation. Age and Ageing 55, afag246.

See Also

rqlm, qlogist, SGLT2i01

Examples

Run this code
data(SGLT2i02)
rqlm(death36 ~ A + I(exp(2.4 * risk_score)),
      data=SGLT2i02, family=gaussian, var.method="standard")
# \donttest{
rqlm(death36 ~ A + I(exp(2.4 * risk_score)),
     data=SGLT2i02, family=gaussian, var.method="HAD")
# }

Run the code above in your browser using DataLab