We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
col_binomial
At this point:
projectable/R/col_binomial.R
Lines 40 to 44 in 6045864
we want to do something like this:
n <- as.integer(n) N <- as.integer(N) if (!summarised) { bad_vals <- setdiff(unique(n), 0:1) if (length(bad_vals) > 0) stop("`n` must be binary") n <- sum(n, na.rm = TRUE) N <- sum(N, na.rm = TRUE) }
Possibly we want to do the same for N, although if we do that then we cannot write:
N
b_trials <- stats::rbinom(1000, 1, 0.5) col_binomial(b_trials, length(b_trials))
We would have to write
b_trials <- stats::rbinom(1000, 1, 0.5) col_binomial(b_trials, b_trials %in% 0:1)
The text was updated successfully, but these errors were encountered:
4aceb02
No branches or pull requests
At this point:
projectable/R/col_binomial.R
Lines 40 to 44 in 6045864
we want to do something like this:
Possibly we want to do the same for
N
, although if we do that then we cannot write:We would have to write
The text was updated successfully, but these errors were encountered: