Skip to content

Commit 0f101ff

Browse files
committed
Changes in input checks
1 parent 6d99778 commit 0f101ff

2 files changed

Lines changed: 0 additions & 5 deletions

File tree

R/fit_beta_1exp.R

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,7 @@ fit_beta_1exp <- function (df) {
2525
assert_that(is.data.frame(df))
2626
assert_that(all(names(df) == c("w", "cum_probs")))
2727
assert_that(is.numeric(df$w))
28-
assert_that(all(df$w > 0))
29-
assert_that(all(df$w < 1))
3028
assert_that(is.numeric(df$cum_probs))
31-
assert_that(all(df$cum_probs >= 0))
32-
assert_that(all(df$cum_probs <= 1))
3329
# beta fit function
3430
w <- df$w
3531
cum_probs <- df$cum_probs

R/get_model_input_1exp.R

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
get_model_input_1exp <- function(cum_probs, w = NULL) {
2020
# check inputs
2121
assert_that(is.numeric(cum_probs))
22-
assert_that(all(dplyr::between(cum_probs, 0, 1)))
2322
assert_that(all(cum_probs == cummax(cum_probs)))
2423
# create dataframe
2524
w <- 1:length(cum_probs) / length(cum_probs)

0 commit comments

Comments
 (0)