lifestresses | R Documentation |
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.
data(lifestresses)
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.
haberman1978multibridge
\insertRefjaspmultibridge
\insertRefsarafoglou2020evaluatingPreprintmultibridge
\insertRefuhlenhuth1977rememberingmultibridge
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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.