gendist4: Generate test distribution 4

Description Usage Arguments Value

View source: R/testdata.R

Description

This function generates a data set for testing purposes. There is a single instrument that takes on values of 1, 2, and 3, and the distribution of the values for the binary instrument is uniform. The MTRs are m0 ~ 1 and m1 ~ 1. All unobservables u are integrated out.

Usage

1
gendist4(subN = 5, p1 = 0.4, p2 = 0.6, p3 = 0.8)

Arguments

subN

integer, default set to 5. This is the number of individuals possessing each value of the instrument. So the total number of observations is subN * 2.

p1

the probability of treatment for those with the instrument Z = 1.

p2

the probability of treatment for those with the instrument Z = 2.

p3

the probability of treatment for those with the instrument Z = 3.

Value

a data.frame.


ivmte documentation built on Sept. 17, 2021, 5:06 p.m.