Closed johnnybonney closed 2 years ago
Better would be to not throw an error at all? We should be able to detect that there are duplicated 0's and/or 1's and remove them
Done!
We should be able to detect that there are duplicated 0's and/or 1's and remove them
This is what we do now.
If spline knots are included at 0 or 1, I get an unclear error about splines. This has happened a few times to me when I define knots based on the distribution of propensity scores, and end up with 0's or 1's. The error is specific enough that one should be able to intuit what's going on, but I admit it took me a minute the first couple of times...
It might be more informative to have
ivmte
throw the error directly, saying that knots can't be at 0 or 1.Here's an example:
prints