Skip to content

Add allocate_treatments function#68

Open
Dimitry-Wintermantel wants to merge 1 commit intom-Py:mainfrom
Dimitry-Wintermantel:feature-allocate-treatments
Open

Add allocate_treatments function#68
Dimitry-Wintermantel wants to merge 1 commit intom-Py:mainfrom
Dimitry-Wintermantel:feature-allocate-treatments

Conversation

@Dimitry-Wintermantel
Copy link

As previously agreed I now provide here the allocate_treatment function that enables balanced treatment allocation based on specified covariates. The function ensures that treatment groups are created while minimizing within-group variance and allowing constraints such as equal replicates, standardized covariates, and stratified matching within subsets.

…jects to treatment groups while balancing specified covariates
@m-Py
Copy link
Owner

m-Py commented Mar 6, 2025

Hi Dimitry,

thanks for your PR. Sorry for my late reaction, I was quite busy when you submitted and then forgot to get back to you sooner. I have two followup questions:

  • Could you change the target of your PR? I just created a new branch bee_allocation, which you can use. It is (currently) identical to main, which is however reserved for released versions of anticlust.
  • Could you provide a reference for your function? As discussed, it makes sense to explain where this function is coming from and why it is in anticlust. I assume that a working title / manuscript in preparation reference would suffice now. We might even synchronize when the function is included in anticlust and when you submit / publish your paper. I would also add to the documentation (but this is something that I can do) that this function implements the anticlustering specification that you used in your paper.

Thanks,

Martin

@Dimitry-Wintermantel
Copy link
Author

Dimitry-Wintermantel commented Apr 9, 2025 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants