Closed mattansb closed 2 weeks ago
Okay, I see this is because these DFs are difficult (impossible?) to compute.
However, I think having this result in an error is harsh (especially considering this error might occur after long computation times). I think a warning + setting df=Inf
would be better here.
Yeah, right, I couldn't find a way to do this for aggregated values.
Error vs. Warning is always a judgment call, and I'm never 100% sure what to do. But in this case, it feels like an error, because the user is explicitly requesting something, and we are giving them something different.
Consider a different case: the warning on aggregation for frequentist mixed effects models. There, the user doesn't request anything specific for uncertainty, and we issue a warning about re.form
. This seems appropriate because the user didn't say anything, but what we supply is probably not what what they want.
Here, marginaleffects
know for sure that what we supply is not what the user wants, so it's an error.
Anyway, that's the kind of rule I have in mind...
Personally, I would prefer a result close to what I asked for than none at all (AFAIK the functions don't fail when the requested quantities are NA
s, which is much more "severe" than wrong dfs).
But it's your call (:
hmm, I don't think it's as severe. Nobody can publish a table with just NA
s in them! But they could publish incorrect numerical results without noticing the error.
Created on 2024-10-27 with reprex v2.1.1
True for predictions and comparisons as well.