MartinSpindler / hdm

Other
11 stars 8 forks source link

Add checks for input of Data Backend #13

Open PhilippBach opened 10 months ago

PhilippBach commented 10 months ago

Generally, we should add some checks requiring that x , d and y are subsets of names(data)

https://github.com/MartinSpindler/hdm/blob/d9fe0f09a39a32959f0344632b0dda25197b9dd2/R/AutoDebiased_backends.R#L28-L30

and

https://github.com/MartinSpindler/hdm/blob/d9fe0f09a39a32959f0344632b0dda25197b9dd2/R/AutoDebiased_backends.R#L123-L125

And also here

https://github.com/MartinSpindler/hdm/blob/d9fe0f09a39a32959f0344632b0dda25197b9dd2/R/AutoDebiased_backends.R#L139

we should check whether d %in% const_cols

PhilippBach commented 9 months ago

Add similar checks for unit and time variables (panel data)

https://github.com/MartinSpindler/hdm/blob/07bf7134a2b0710c011701592876655e8dbd4768/R/AutoDebiased_backends.R#L149