Skip to content

Commit 1a361a9

Browse files
Copilotkaiemjoy
andauthored
Fix cluster subset sign indexing
Co-authored-by: kaiemjoy <16113030+kaiemjoy@users.noreply.github.com>
1 parent 1626219 commit 1a361a9

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Type: Package
22
Package: serocalculator
33
Title: Estimating Infection Rates from Serological Data
4-
Version: 1.4.1.9000
4+
Version: 1.4.1.9001
55
Authors@R: c(
66
person("Kristina", "Lai", , "kwlai@ucdavis.edu", role = c("aut", "cre")),
77
person("Chris", "Orwa", role = "aut"),

R/compute_cluster_robust_var.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
pop_data_combined = pop_data_combined
5050
)
5151
robust_var_log_lambda <- robust_var_log_lambda +
52-
(-1)^(n_vars_per_subset[[i]] + 1) * subset_var_log_lambda
52+
(-1)^(n_vars_per_subset[i] + 1) * subset_var_log_lambda
5353
}
5454

5555
# Use a conservative floor so cluster-robust variance does not fall below the

0 commit comments

Comments
 (0)