Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

shuffleSet and allPerms getting permutations incorrect #28

Closed
gavinsimpson opened this issue Nov 4, 2021 · 0 comments
Closed

shuffleSet and allPerms getting permutations incorrect #28

gavinsimpson opened this issue Nov 4, 2021 · 0 comments
Assignees
Labels

Comments

@gavinsimpson
Copy link
Owner

Cajo ter Braak emailed reporting this issue:

## Set up factors for the Plots and Blocks
plts <- gl(4, 10) ## 4 Plots of 10 samples each
blks <- gl(2, 20) ## 2 Blocks of 20 samples each

## define permutation design
h1 <- how(Within(type = "series"), blocks = blks)

## correct
numPerms(40, h1) # 400

## fails hard
p <- allPerms(40, h1)
dim(p) # 159999     40 !! Nope!!
@gavinsimpson gavinsimpson self-assigned this Nov 4, 2021
gavinsimpson added a commit that referenced this issue Nov 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant