Skip to main content
  • Home
  • Development
  • Documentation
  • Donate
  • Operational login
  • Browse the archive

swh logo
SoftwareHeritage
Software
Heritage
Archive
Features
  • Search

  • Downloads

  • Save code now

  • Add forge now

  • Help

  • c49f88d
  • /
  • data.R
Raw File Download

To reference or cite the objects present in the Software Heritage archive, permalinks based on SoftWare Hash IDentifiers (SWHIDs) must be used.
Select below a type of object currently browsed in order to display its associated SWHID and permalink.

  • content
  • directory
content badge
swh:1:cnt:77e95ac44529aed87b71c689b6d78b52ac9c1e98
directory badge
swh:1:dir:c49f88dc4461ee4f7d969eefddc5d36e2726b09d

This interface enables to generate software citations, provided that the root directory of browsed objects contains a citation.cff or codemeta.json file.
Select below a type of object currently browsed in order to generate citations for them.

  • content
  • directory
(requires biblatex-software package)
Generating citation ...
(requires biblatex-software package)
Generating citation ...
data.R
#' Suicide attempts and DSI sum scores of 532 subjects
#'
#' Various personality and clinical psychological characteristics were assessed
#' as part of an online-study preventing suicide. To identify persons at risk
#' for attempting suicide, various demographic and clinical characteristics
#' were assessed. Depressive Symptom Inventory - Suicidality Subscale
#' (DSA-SS) sum scores and past suicide attempts from 532 subjects are
#' included as a demonstration set to calculate optimal cutpoints. Two
#' additional demographic variables (age, gender) are also included to test
#' for group differences.
#'
#' @format A data frame with 532 rows and 4 variables:
#' \describe{
#'   \item{age}{(numeric) Age of participants in years}
#'   \item{gender}{(factor) Gender}
#'   \item{dsi}{(numeric) Sum-score (0 = low suicidality, 12 = high suicidality)}
#'   \item{suicide}{(factor) Past suicide attempt (no = no attempt, yes = at least one attempt)}
#' }
#' @source von Glischinski, M., Teisman, T., Prinz, S., Gebauer, J., and Hirschfeld, G. (2017). Depressive Symptom Inventory- Suicidality Subscale: Optimal cut points for clinical and non-clinical samples. Clinical Psychology & Psychotherapy
"suicide"

back to top

Software Heritage — Copyright (C) 2015–2026, The Software Heritage developers. License: GNU AGPLv3+.
The source code of Software Heritage itself is available on our development forge.
The source code files archived by Software Heritage are available under their own copyright and licenses.
Terms of use: Archive access, API— Content policy— Contact— JavaScript license information— Web API