bn_simulate: Simulate data from bn_df object

View source: R/bn_simulate.R

bn_simulateR Documentation

Simulate data from bn_df object

Description

Simulate data from bn_df object

Usage

bn_simulate(bn_df, known_df = NULL, pop_size, keep_all = FALSE, .id = NULL)

Arguments

bn_df

initialised bn_df object, with simulation instructions. Created with bn_create

known_df

data.frame. Optional data.frame containing upstream variables used for simulation.

pop_size

integer. The size of the dataset to be created.

keep_all

logical. Keep all simulated variables or only keep those specified by keep

.id

character. Name of id column placed at the start of the dataset. If NULL (default) then no id column is created.

Value

tbl


wjchulme/dd4d documentation built on Dec. 22, 2024, 3:37 a.m.