Skip to contents

Run a datasim simulation, producing a data frame

Usage

datasim_run(sim, n = 5, seed = NULL, report_hidden = FALSE)

Arguments

sim

A simulation object, as produced by datasim_make().

n

The size of the data sample pulled from the simulation.

seed

An integer random number seed, for reproducibility. (Or, use set.seed() before running sim_run().)

report_hidden

logical. If TRUE, show the values of hidden variables (that is, variables whose name begins with a dot)

Value

a data frame with a column for each node in the datasim object.