make_plr_turrell2018 {DoubleML} | R Documentation |
Generates data from a partially linear regression model used in a blog article by Turrell (2018).
Description
Generates data from a partially linear regression model used in a blog article by Turrell (2018). The data generating process is defined as
with ,
, and
covariates
, where
is a random symmetric, positive-definite matrix generated with
clusterGeneration::genPositiveDefMat()
. is a vector with entries
and the nuisance functions are given by
Usage
make_plr_turrell2018(
n_obs = 100,
dim_x = 20,
theta = 0.5,
return_type = "DoubleMLData",
nu = 0,
gamma = 1
)
Arguments
n_obs |
( |
dim_x |
( |
theta |
( |
return_type |
( |
nu |
( |
gamma |
( |
Value
A data object according to the choice of return_type
.
References
Turrell, A. (2018), Econometrics in Python part I - Double machine learning, Markov Wanderer: A blog on economics, science, coding and data. https://aeturrell.com/blog/posts/econometrics-in-python-parti-ml/.