Skip to content

Commit c2744e3

Browse files
committed
changed decline check from stop to warning; closes #88, closes #89.
1 parent d2825fe commit c2744e3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

R/check_data.R

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,10 @@ check_data <- function(data, family, model) {
3939
resp_check <- mean(y[which(x < mean(x))]) <
4040
mean(y[which(x > mean(x))])
4141
if (resp_check && !grepl("horme", model)) {
42-
stop("The mean value of the response column for the lower half of the ",
43-
"predictor column are lower than that of the upper half ",
44-
"of the predictor column. bnec only allows for ",
45-
"response values to decline with increasing values of predictor.")
42+
warning("The mean value of the response column for the lower half of the ",
43+
"predictor column are lower than that of the upper half ",
44+
"of the predictor column. bnec only allows for ",
45+
"response values to decline with increasing values of predictor.")
4646
}
4747
fam_tag <- family$family
4848
x_type <- set_distribution(x)

0 commit comments

Comments
 (0)