Skip to content

Commit

Permalink
correct early_zero in wlr
Browse files Browse the repository at this point in the history
  • Loading branch information
LittleBeannie committed Apr 10, 2024
1 parent 7fec202 commit e19dc7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/wlr.R
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ wlr <- function(data, weight, return_variance = FALSE) {
ans$z <- ans$estimate / ans$se

} else if (inherits(weight, "early_period")) {
x <- x |> early_zero_weight(early_period = weight$early_period)
x <- x |> early_zero_weight(early_period = weight$early_period, fail_rate = weight$fail_rate)

ans$parameter <- paste0("Xu 2017 with first ", weight$early_period, " months of 0 weights")
ans$estimate <- sum(x$o_minus_e * x$weight)
Expand Down

0 comments on commit e19dc7a

Please sign in to comment.