Skip to content

Commit

Permalink
Merge pull request #26 from socialresearchcentre/dev
Browse files Browse the repository at this point in the history
Fix bug in binomials
  • Loading branch information
kinto-b authored Dec 13, 2021
2 parents 2cd89a2 + 609b2ff commit 96f18c4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: projectable
Title: Metadata-Rich Tables
Version: 0.0.2
Version: 0.0.3
Authors@R:
c(person(given = "Kinto",
family = "Behr",
Expand Down
3 changes: 3 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# projectable 0.0.3
* Fix bug in `col_binomial()` that was turning FPC off.

# projectable 0.0.2

* Implement `new_col` function to allow users to make their own `col` objects (#16).
Expand Down
2 changes: 1 addition & 1 deletion R/col_binomial.R
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ col_binomial <- function(n = integer(), N = integer(), ci_error = 0.05, populati
conf = 1-ci_error[i],
summarized = TRUE,
phat = n[i]/N[i],
fpc = population[i] == Inf,
fpc = population[i] != Inf,
n = N[i],
N = population[i],
method = method
Expand Down

0 comments on commit 96f18c4

Please sign in to comment.