Learn R Programming

multimedia (version 0.2.0)

demo_joy: A Demo Dataset (Random)

Description

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)

Value

SE The summarized experiment containing random data.

Arguments

n_samples

How many random samples to generate?

n_mediators

How many random mediators to generate?

n_pretreatment

How many random pretreatment variables?

Examples

Run this code
demo_joy()

demo_joy(n_samples = 2, n_mediators = 20)

Run the code above in your browser using DataLab