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 1 forks source link

warn if users aren't using strata in estimation #87

Closed josherrickson closed 1 year ago

josherrickson commented 2 years ago

If a design has a block() and the user calls lmitt() without at least one of:

  1. a WeightedDesign in the weights= argument,
  2. absorb = TRUE

Provide a warning/message along the lines of "Your design includes blocks but the model you fit does not utilize that information."

(Note for 1., users passing a non-WeightedDesign weight (see reopening of #75) would mean they're not using the block information.)