Skip to content

Add allocate_treatments function#68

Open
Dimitry-Wintermantel wants to merge 2 commits intom-Py:bee_allocationfrom
Dimitry-Wintermantel:feature-allocate-treatments
Open

Add allocate_treatments function#68
Dimitry-Wintermantel wants to merge 2 commits intom-Py:bee_allocationfrom
Dimitry-Wintermantel:feature-allocate-treatments

Conversation

@Dimitry-Wintermantel
Copy link
Copy Markdown

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
Copy Markdown
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
Copy Markdown
Author

Dimitry-Wintermantel commented Apr 9, 2025 via email

@Dimitry-Wintermantel Dimitry-Wintermantel changed the base branch from main to bee_allocation March 17, 2026 20:19
@Dimitry-Wintermantel
Copy link
Copy Markdown
Author

Hi Martin,

Sorry for the delay. The article on the allocation functions is now for about a month under review. I have changed the PR target to bee_allocation and updated the function and added the second one that we spoke about long time ago (allocation in multi-level designs). Thanks for allowing me to contribute those functions to anticlust.

Best wishes,
Dimitry

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