Formatting your data for cpass compatibility

These functions will help you formatting your data so that you can run the CPASS diagnosis function and the visualization functions.

as_cpass_data()

Transforms into a "cpass" data.frame.

is_cpass_data()

Checks if data is a "CPASS" data.frame.

supported_data_format()

Supported data format for the as_cpass_data function.

.compute_phase_and_cycleday()

Compute cycledays and phases from dates and provided starts of cycles.

CPASS diagnosis function

cpass()

Applies the C-PASS procedure for PMDD and MRMD diagnoses

Visualization functions

Functions to visualize subjects data and diagnosis.

plot_subject_cycle_obs()

Visualize the scores of a subject's cycle

plot_subject_data_and_dx()

Visualize all the observations and the diagnosis summary of a single subject.

plot_subject_dx()

Visualize the subject diagnosis

plot_subject_obs()

Visualize all the observations of a single subject.

PMDD example data

PMDD_data

Example of PMDD data.

DSM5 domains definition

dsm5_dict

PMDD DSM-5 items and their domains.

CPASS data simulation functions

simulate_cpass_data()

Simulates CPASS data

simulate_cycle()

Simulates CPASS data for a single cycle.