Closed josherrickson closed 1 year ago
Bummer. But good catch!
If cov_adj()
is going to need its design=
argument regularly, perhaps we should promote it from third in the order of args to second, so that users can abbreviate cov_adj(cmod, design=des)
to cov_adj(cmod, des)
.
We need at least one of ate()
/ett()
or cov_adj()
to have a design=
argument, not both. In the 2x2 table of weights yes/no and cov_adj yes/no, if we expect the weights no/cov_adj yes box to have a high proportion of all mdoels, then perhaps that would make sense.
Just to be clear, this issue isn't saying that we need to pass Design
to both weights and cov_adj; just that when both are present and no design=
argument is passed, the error is inappropriate.
Got it, thanks! I'll propose that we take any further followups about the cov_adj()
UI over to #4.
If
ate()
is called inlm()
without passing a Design and no offset, it errors appropriately.if
ate()
is called andcov_adj()
properly has adesign=
argument, it works as expected.If
ate()
is called andcov_adj()
does not have adesign=
argument it gives a nonsense error message.