simulated_rmsMD_data: Simulated Data for the Vignette

View source: R/rmsMD_helpers.R

simulated_rmsMD_dataR Documentation

Simulated Data for the Vignette

Description

Generates a synthetic dataset for testing and demonstration purposes in the rmsMD package.

Usage

simulated_rmsMD_data(type = c("complete_case", "missing_for_MI"))

Arguments

type

Character string; either "complete_case" (no missing data) or "missing_for_MI" (introduces 10% missing data in each predictor).

Value

A data frame with simulated variables: age, bmi, sex, smoking, majorcomplication, lengthstay, time, and event.


rmsMD documentation built on June 18, 2025, 1:08 a.m.