lifestresses {multibridge}R Documentation

Memory of Life Stresses

Description

This data set, "lifestresses", provides the number of reported life stresses (summed across participants) that occurred in specific months prior to an interview. This data set contains the subset of 147 participants who reported one negative life event over the time span of 18 months prior to an interview. Description taken from the JASP (2020) data library.

Usage

data(lifestresses)

Format

A data.frame with 18 rows and 3 variables:

month

The month in which participants reported a stressful life event.

stress.freq

The number of participants who reported a life stress in the particular month prior to an interview.

stress.percentage

The percentage of participants who reported a life stress in the particular month prior to an interview.

References

Haberman SJ (1978). Analysis of qualitative data: Introductory topics, volume 1. Academic Press.

JASP Team (2022). “JASP (Version 0.16.3.0) [Computer software].” https://jasp-stats.org/.

Sarafoglou A, Haaf JM, Ly A, Gronau QF, Wagenmakers EJ, Marsman M (2021). “Evaluating Multinomial Order Restrictions with Bridge Sampling.” Psychological Methods.

Uhlenhuth EH, Haberman SJ, Balter MD, Lipman RS (1977). “Remembering life events.” In The origins and course of psychopathology, 117–134. Springer Verlag.

Examples

data(lifestresses)
# Prior specification 
# We assign a uniform Dirichlet distribution, that is, we set all 
# concentration parameters to 1
a             <- rep(1, 18)
x             <- lifestresses$stress.freq
factor_levels <- lifestresses$month
# Test the following restricted Hypothesis:
# Hr: month1 > month2 > ... > month18 
Hr            <- paste0(1:18, collapse=">"); Hr
out  <- mult_bf_informed(x=x, Hr=Hr, a=a, factor_levels=factor_levels,
niter=1e3, bf_type = 'BFre', seed = 4)
m1 <- summary(out)
m1

[Package multibridge version 1.2.0 Index]