gendist6e: Generate test distribution 6 (has errors and a covariate)

View source: R/testdata.R

gendist6eR Documentation

Generate test distribution 6 (has errors and a covariate)

Description

This function generates a data set for testing purposes. There is a single instrument that is uniformly distributed over [0, 1]. The MTRs are both of the form m ~ 1 + x + x:u.

Usage

gendist6e(N = 100, v0.sd = 1, v1.sd = 1.55)

Arguments

N

integer, default set to 100. Total number of observations in the data.

v0.sd

numeric, standard deviation of error term for counterfactual D = 0

v1.sd

numeric, standard deviation of error term for counterfactual D = 1

Value

a data.frame.


jkcshea/ivmte documentation built on Aug. 31, 2024, 6:44 p.m.