| tabforest_demo | R Documentation |
A simulated health-research dataset designed specifically for the worked
examples in tabforest(). It contains binary, continuous, count, and
time-to-event outcomes, together with continuous and categorical predictors.
A small amount of missing data is intentional so users can compare
sample = "common" and sample = "model".
data(tabforest_demo)
A data frame with 500 rows and 19 variables:
Participant identifier.
Age in years.
Sex: Female or Male.
Body mass index in kg/m2.
Current smoking: No or Yes.
Current alcohol use: No or Yes.
Primary, Secondary, or College.
Control or Intervention.
Binary outcome: No or Yes.
Binary prevalence outcome: No or Yes.
Systolic blood pressure in mmHg; continuous outcome.
Number of healthcare visits; count outcome.
Follow-up time in years.
Survival event indicator: 0=censored, 1=death.
Hospital cluster identifier H1-H5.
Age group: <55 or >=55 years.
Demo obesity grouping: No or Yes (BMI >=27.5 for teaching only).
Simulated diabetes mellitus: No or Yes.
Simulated dyslipidemia: No or Yes.
The dataset is entirely simulated and contains no real patient information. It is intended for package examples, teaching, testing, and screenshots.
Simulated by R4VN for reproducible examples; seed 20260813.
data(tabforest_demo)
str(tabforest_demo)
table(tabforest_demo$hypertension, useNA = "ifany")
summary(tabforest_demo$sbp)
# A CSV copy is also installed for teaching/import demonstrations.
p <- system.file("extdata", "tabforest_demo.csv", package = "R4VN")
p
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.