dataGen: Generate Simulation Data

Description Usage Arguments Value Examples

View source: R/dataGen.R

Description

This function allows the user to generate a simulation data frame for evaluating the double machine learning estimator for theta. It requres the user to specify how many observations and control variables to include aside from the treatment variable. There is also an option to set the seed for reproducible results.

Usage

1
dataGen(N = 10000, n_controls = 10, theta = 0.5, seed_set = NULL)

Arguments

N

number of desired observations/rows.

n_controls

number of control variables/columns.

theta

user-defined treatment effect.

seed_set

an integer used for set.seed.

Value

A data frame

Examples

1

mtvseven/DoubleDragon documentation built on July 22, 2020, 10:57 a.m.