Package: PTSDdiag 0.1.0


Tobias R. Spiller
PTSDdiag: Optimize PTSD Diagnostic Criteria
Provides tools for analyzing and optimizing PTSD (Post-Traumatic Stress Disorder) diagnostic criteria using PCL-5 (PTSD Checklist for DSM-5) data. Functions identify optimal subsets of PCL-5 items that maintain diagnostic accuracy while reducing assessment burden. Includes tools for both hierarchical (cluster-based) and non-hierarchical symptom combinations, calculation of diagnostic metrics, and comparison with standard DSM-5 criteria. Model validation is conducted using holdout and cross-validation methods to assess robustness and generalizability of the results. For more details see Weidmann et al. (2025) <doi:10.31219/osf.io/6rk72_v1>.
Authors:
PTSDdiag_0.1.0.tar.gz
PTSDdiag_0.1.0.zip(r-4.7)PTSDdiag_0.1.0.zip(r-4.6)PTSDdiag_0.1.0.zip(r-4.5)
PTSDdiag_0.1.0.tgz(r-4.6-any)PTSDdiag_0.1.0.tgz(r-4.5-any)
PTSDdiag_0.1.0.tar.gz(r-4.7-any)PTSDdiag_0.1.0.tar.gz(r-4.6-any)
PTSDdiag_0.1.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
PTSDdiag/json (API)
| # Install 'PTSDdiag' in R: |
| install.packages('PTSDdiag', repos = c('https://weidmannl.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/weidmannl/ptsddiag/issues
- simulated_ptsd - Simulated PCL-5 (PTSD Checklist) Data
Last updated from:249808c5cb. Checks:9 OK. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel-x86_64 | OK | 336 | ||
| source / vignettes | OK | 191 | ||
| linux-release-x86_64 | OK | 276 | ||
| macos-release-arm64 | OK | 247 | ||
| macos-oldrel-arm64 | OK | 291 | ||
| windows-devel | OK | 206 | ||
| windows-release | OK | 328 | ||
| windows-oldrel | OK | 345 | ||
| wasm-release | OK | 108 |
Exports:analyze_best_six_symptoms_four_requiredanalyze_best_six_symptoms_four_required_clustersbinarize_datacalculate_ptsd_totalcreate_ptsd_diagnosis_binarizedcreate_ptsd_diagnosis_nonbinarizedcreate_readable_summarycross_validationholdout_validationrename_ptsd_columnssummarize_ptsdsummarize_ptsd_changes
Dependencies:backportsbroomclicpp11dplyrgenericsgluelifecyclemagrittrmodelrpillarpkgconfigpurrrR6rlangstringistringrtibbletidyrtidyselectutf8vctrswithr
Readme and manuals
Help Manual
| Help page | Topics |
|---|---|
| Find optimal non-hierarchical six-symptom combinations for PTSD diagnosis | analyze_best_six_symptoms_four_required |
| Find optimal hierarchical six-symptom combinations for PTSD diagnosis | analyze_best_six_symptoms_four_required_clusters |
| Binarize PCL-5 symptom scores | binarize_data |
| Calculate PTSD total score | calculate_ptsd_total |
| Determine PTSD diagnosis based on DSM-5 criteria using binarized scores | create_ptsd_diagnosis_binarized |
| Determine PTSD diagnosis based on DSM-5 criteria using non-binarized scores | create_ptsd_diagnosis_nonbinarized |
| Create readable summary of PTSD diagnostic changes | create_readable_summary |
| Perform k-fold cross-validation for PTSD diagnostic models | cross_validation |
| Perform holdout validation for PTSD diagnostic models | holdout_validation |
| Rename PTSD symptom (= PCL-5 item) columns | rename_ptsd_columns |
| Simulated PCL-5 (PTSD Checklist) Data | simulated_ptsd |
| Summarize PTSD scores and diagnoses | summarize_ptsd |
| Summarize changes in PTSD diagnostic metrics | summarize_ptsd_changes |