benbhansen-stats / propertee

Prognostic Regression Offsets with Propagation of ERrors, for Treatment Effect Estimation (IES R305D210029).
https://benbhansen-stats.github.io/propertee/
Other
2 stars 0 forks source link

I30 dichotomy #176

Closed jwasserman2 closed 5 months ago

jwasserman2 commented 5 months ago

Major changes (in order of the files changed below)

c() for WeightedDesign objects

Design objects

treatment()/.bin_txt()

WeightedDesign objects

assigned()

.get_dichotomy()

lmitt()

.weights_calc()

josherrickson commented 5 months ago

Per discussion with Josh:

benthestatistician commented 5 months ago

I'd like to request a small addition to the nice chunk of work that was recently added on this branch. Looking over the discussion and the tests, it's not immediately clear to me where we landed with regard to use of the CombinedWeightedDesign class. File test.CWD.R now has a number of instances of expect_false(inherits(foo, "CombinedWeightedDesign")), but no corresponding expect_true()'s (nor any expect_s4_class(foo, "CombinedWeightedDesign")'s). This suggests that we landed on not using it. But the title of the file suggests that it's a thing, as do the inline comments surrounding the class definition and various of my inline notes in test.CWD.R -- e.g. comments in this block.

Could someone just update the inline notes to clarify? Particularly in test.CWD.R, and maybe CWD.R. I imagine this could be either Josh W or Josh E. Please don't hesitate to trash inline notes of mine that no longer apply. If it's appropriate to remove the CWD definition, I'm OK with that too; whatever leaves us a clearer trail of crumbs when we find ourselves maintaining this in the future.

jwasserman2 commented 5 months ago

I think it'd be clearest if we just delete the CombinedWeightedDesign class from CombinedWeightedDesign.R and any tests in test.CombinedWeightedDesign.R that reference it, so if people find that acceptable I can go ahead and do that

josherrickson commented 5 months ago

I agree, let's remove all traces of CombinedWeightedDesign if we're not going to use it.

benthestatistician commented 5 months ago

Makes sense to me. If indeed we'll remove all traces of CWD, I'd suggest indicating that clearly in the commit message, in the event that we should someday think of another use for some of that nice code.

Where JW says get rid of tests referencing CWD, I take him to mean get rid of the parts of those tests that reference CWD. The tests of combining WDs are probably worth keeping around.

If there'll no longer be a CWD class, perhaps the names of these files should be changed accordingly too: e.g. CombinedWeightedDesign.R -> combine_WeightedDesign.R, test.CombinedWeightedDesign.R -> test.combine_WeightedDesign.R.

jwasserman2 commented 5 months ago

Commit eedc0c4 addresses the final string of comments