ltreedata: Sample longitudinal data for decision tree examples

ltreedataR Documentation

Sample longitudinal data for decision tree examples

Description

A sample balanced longitudinal dataset with 50 subjects observed at 10 equally spaced time points.

Usage

ltreedata

Format

A data frame with 500 rows and 7 variables:

y

Response variable (continuous).

subject

Subject identifier (integer, 1–50).

time

Time point (integer, 1–10).

x1

Baseline covariate 1 (integer, 1–10).

x2

Baseline covariate 2 (integer, 1–10).

x3

Baseline covariate 3 (integer, 1–6).

x4

Baseline covariate 4 (integer, 1–12).


longitree documentation built on May 16, 2026, 5:06 p.m.