Date: 2022-12-09
Title: Sleep Quality and Anxiety in Confinement
Version: 0.0.1
Description: Data from the anxiety and confinement study from Alvarado-Aravena et al. (2022) <doi:10.3390/bs12100398>.
License: CC BY 4.0
Encoding: UTF-8
RoxygenNote: 7.2.2
Imports: data.table (≥ 1.14.2), lifecycle
URL: https://github.com/NIM-ACh/AnxietySleep
BugReports: https://github.com/NIM-ACh/AnxietySleep/issues
Depends: R (≥ 3.1.0)
LazyData: true
NeedsCompilation: no
Packaged: 2022-12-10 11:29:35 UTC; matias
Author: Caren Alvarado-Aravena ORCID iD [aut], Matías Castillo-Aguilar ORCID iD [aut, cre], Cristian Núñez-Espinosa ORCID iD [aut]
Maintainer: Matías Castillo-Aguilar <matcasti@umag.cl>
Repository: CRAN
Date/Publication: 2022-12-12 11:20:03 UTC

Anxiety & Confinement

Description

Data from the anxiety and confinement study from Alvarado et al. (2022) <doi: 10.3390/bs12100398>.

Author(s)

Maintainer: Matías Castillo-Aguilar matcasti@umag.cl (ORCID)

Authors:

See Also

Useful links:


Data from the anxiety and confinement study.

Description

[Stable]

This dataset contains the variables used in the anxiety and confinement study carried out by Alvarado-Aravena et al. 2022.

Usage

anxiety

Format

A data frame with 617 rows y 7 variables:

Source

Examples

# Mean age grouped by sex and zone using `data.table` syntax
anxiety[,  # No filtering (i)
        list(mean_age = mean(age)), # Action to do (j)
        list(sex, zone)] # Grouping vars (by)

# Mean PSQI score grouped by sex and zone, for those with
# an age greater than 18 AND a Beck score greater than 10.
anxiety[age > 18 & beck_global > 10,
        list(mean_psqi = mean(pits_global)),
        list(sex, zone)]

mirror server hosted at Truenetwork, Russian Federation.