build_sim_dataset: build_sim_dataset

View source: R/simulate_data.R

build_sim_datasetR Documentation

build_sim_dataset

Description

A function for building simulated data

Usage

build_sim_dataset(sp_list, panel = TRUE)

Arguments

sp_list

A list of simulation parameters. See reset.sim to generate some default values for parameters

panel

whether to construct panel data (the default) or repeated cross sections data

Value

a data.frame with the following columns

  • G observations group

  • X value of covariate

  • id observation's id

  • cluster observation's cluster (by construction there is no within-cluster correlation)

  • period time period for current observation

  • Y outcome

  • treat whether or not this unit is ever treated


did documentation built on July 20, 2022, 5:06 p.m.