Learn R Programming

wlsd (version 1.0.1)

Wrangling Longitudinal Survival Data

Description

Streamlines the process of transitioning between data formats commonly used in survival analysis. Functions convert longitudinal data between formats used as input for survival models as well as support overall preparation. Users are able to focus on model building rather than data wrangling.

Copy Link

Version

Install

install.packages('wlsd')

Version

1.0.1

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Charles Ingulli

Last Published

February 4th, 2026

Functions in wlsd (1.0.1)

long_data

Long Format Data Example
cp2long

Counting Process Format to Long format
basedate

Create Baseline Row
long2count

Longitudinal to Count format
events2state

Multiple Event Variables to One State Variable
long2cp

Long Format to Counting Process format
takefirst

Subset observations for grouped data based on first occurrence of a criteria value
count_data

Count Format Data Example
cp_data

Counting Process Data Example
wide_data

Wide Format Data Example
LBP

Low Back Pain Data Set
wlsd-package

wlsd: Wrangling Longitudinal Survival Data