Skip to content

Commit

Permalink
Fix outdated doc example
Browse files Browse the repository at this point in the history
  • Loading branch information
bschneidr committed Dec 30, 2024
1 parent 734b6ce commit e303514
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 4 additions & 2 deletions R/successive-difference-replication.R
Original file line number Diff line number Diff line change
Expand Up @@ -187,17 +187,19 @@ assign_hadamard_rows <- function(
#' target_number_of_replicates = 4,
#' use_normal_hadamard = FALSE
#' )
#' print(rep_factors)
#'
#' # These replicate factors are equivalent
#' # to the SD2 variance estimator
#' tcrossprod(rep_factors - 1)
#'
#' # Compare to the quadratic form of the SD2 estimator
#' sd1_quad_form <- make_quad_form_matrix(
#' variance_estimator = "SD1",
#' sd2_quad_form <- make_quad_form_matrix(
#' variance_estimator = "SD2",
#' cluster_ids = matrix(1:4, ncol = 1),
#' sort_order = matrix(1:4, ncol = 1)
#' )
#' print(sd2_quad_form)
#'
make_sdr_replicate_factors <- function(n, target_number_of_replicates, use_normal_hadamard = FALSE) {

Expand Down
6 changes: 4 additions & 2 deletions man/make_sdr_replicate_factors.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit e303514

Please sign in to comment.