Closed CoryMcCartan closed 1 year ago
Or maybe have it the other way: make est_*()
inherit from birdie()
(minimal code changes, no one really sees this anyway) and just implement a new summary()
and print()
on top. As long as list format is the same all the existing generics should carry over fine.
Perhaps OLS as well.
est_wtd()
,est_ols()
?coef()
,plot()
,fitted()
) etc to a new S3 class, and then havebirdie
-specific functionality in generics for that class only.birdie()
return value would have classc("birdie", "est_model")
or something, while wtd and OLS would have latter only.dirichlet_map()