DeclareDesign / randomizr

randomizr: Easy-to-Use Tools for Common Forms of Random Assignment and Sampling
https://declaredesign.org/r/randomizr
Other
36 stars 9 forks source link

permutation matrix bug #64

Closed acoppock closed 6 years ago

acoppock commented 6 years ago

something's wrong!


library(randomizr)
# What's going on here?
declaration <- declare_ra(N = 8, m_each = c(2, 2, 2, 2)) 
perms <- obtain_permutation_matrix(declaration) 
> table(perms[, 1])

T2 T3 T4 
 2  2  4 ```
acoppock commented 6 years ago

goddamn, just spent an hour fixing this without realizing neal had fixed it in a PR I hadn't merged in

nfultz commented 6 years ago

In fairness, that bug had been in there for well over a year.