simulate_simple_experiment: Simulates potential outcomes and adds a treatment variable

Description Usage Arguments Value

View source: R/simulation.R

Description

Simulates potential outcomes and adds a treatment variable

Usage

1
2
simulate_simple_experiment(n, prob_treatment = 0.5,
  seed = sample.int(.Machine$integer.max, 1))

Arguments

n

number of individuals

prob_treatment

probability of treatment

seed

integer value for random seed

Value

data.table with potential outcomes


jianzih/causalA16 documentation built on May 19, 2019, 9:29 a.m.