where Σ is a pnx×pnx matrix with entries
Σkj=0.5∣j−k∣ and
Ipnz is the pnz×pnz
identity matrix. β=γ iis a pnx-vector with entries
βj=j21, δ is a pnz-vector with
entries δj=j21 and
Π=(Ipnz,Opnz×(pnx−pnz)).
(integer(1))
The number of observations to simulate.
alpha
(numeric(1))
The value of the causal parameter.
dim_x
(integer(1))
The number of covariates.
dim_z
(integer(1))
The number of instruments.
return_type
(character(1))
If "DoubleMLData", returns a DoubleMLData object.
If "data.frame" returns a data.frame().
If "data.table" returns a data.table().
If "matrix" a named list() with entries X, y, d and
z is returned.
Every entry in the list is a matrix() object. Default is "DoubleMLData".
Value
A data object according to the choice of return_type.
References
Chernozhukov, V., Hansen, C. and Spindler, M. (2015),
Post-Selection and Post-Regularization Inference in Linear Models with
Many Controls and Instruments.
American Economic Review: Papers and Proceedings, 105 (5): 486-90.