Skip to contents

This is a simple dataset with random data, used simply to illustrate the design of multimedia. There is no real association between any treatments, mediators, or outcomes. It always returns a single outcome (PHQ) SummarizedExperiment, and it randomly assigns samples to Treatment and Control (see the colData). It stores all the hypothetical mediator data in the assay slot.

Usage

demo_joy(n_samples = 100, n_mediators = 5, n_pretreatment = 3)

Arguments

n_samples

How many random samples to generate?

n_mediators

How many random mediators to generate?

n_pretreatment

How many random pretreatment variables?

Value

SE The summarized experiment containing random data.

Examples

demo_joy()
#> class: SummarizedExperiment 
#> dim: 5 100 
#> metadata(0):
#> assays(1): counts
#> rownames(5): ASV1 ASV2 ASV3 ASV4 ASV5
#> rowData names(0):
#> colnames: NULL
#> colData names(2): treatment PHQ

demo_joy(n_samples = 2, n_mediators = 20)
#> class: SummarizedExperiment 
#> dim: 20 2 
#> metadata(0):
#> assays(1): counts
#> rownames(20): ASV1 ASV2 ... ASV19 ASV20
#> rowData names(0):
#> colnames: NULL
#> colData names(2): treatment PHQ