Skip to content

Commit

Permalink
Important bugfix for subsampling replicates.
Browse files Browse the repository at this point in the history
  • Loading branch information
bschneidr committed Oct 15, 2023
1 parent 6f828bd commit afb5b1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/subsample_replicates.R
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ subsample_replicates <- function(design, n_reps) {

# Determine the new order of the replicates
selected_subsample <- sample(
x = seq_len(n_reps), size = n_reps, replace = FALSE
x = seq_len(orig_n_reps), size = n_reps, replace = FALSE
)

# Update the overall scale factor
Expand Down

0 comments on commit afb5b1b

Please sign in to comment.