edunford / tidysynth

A tidy implementation of the synthetic control method in R
Other
98 stars 14 forks source link

[TODO] Add clearer error messaging to package #33

Open edunford opened 3 months ago

edunford commented 3 months ago

Problem

Issues like the one encountered in #32, where simple input errors are made but no errors are thrown notifying the user of incorrect inputs and how to rectify them, is a source of confusion for downstream users.

Proposal

Add a more comprehensive checks regime to the core instantiation function synthetic_control() and better error handling throughout the package to adequately inform users when usage errors are being made.

The checks regime should ensure that:

If you see this and this issue-task is still open, please supply other checks you think might be useful (i.e. are there any user-error friction points that you've run into that a useful error and check would have spotted quickly if in place?).