Skip to content

Commit

Permalink
Add comment about type-stability
Browse files Browse the repository at this point in the history
Co-authored-by: Anshul Singhvi <[email protected]>
  • Loading branch information
jishnub and asinghvi17 authored Mar 26, 2023
1 parent 6079b09 commit c204a14
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/bootstrap.jl
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ function bootweights(design::SurveyDesign; replicates = 4000, rng = MersenneTwis
cluster_sorted = sort(substrata, design.cluster)
cluster_sorted_designcluster = cluster_sorted[!, design.cluster]
cluster_weights = cluster_sorted[!, design.weights]
# Perform the inner loop in a type-stable function to improve runtime.
_bootweights_cluster_sorted!(cluster_sorted, cluster_weights,
cluster_sorted_designcluster, replicates, rng)
substrata_dfs[h] = cluster_sorted
Expand Down

0 comments on commit c204a14

Please sign in to comment.