Commit 9308f871 authored by Tom Reynkens's avatar Tom Reynkens

Show warning when lambda1 > 0 OR lambda2 > 0

parent c9100318
Type: Package
Package: smurf
Title: Sparse Multi-Type Regularized Feature Modeling
Version: 0.4.1
Version: 0.4.1.9000
Date: 2018-09-25
Authors@R: c(
person("Tom", "Reynkens", email = "tomreynkens@hotmail.com", role = c("aut", "cre"),
......
......@@ -345,7 +345,7 @@ glmsmurf.fit <- function(X, y, weights, start, offset, family, pen.cov, n.par.co
} else {
# Show warning when lambda1.orig > 0 or lambda2.orig > 0 and penalty weights are inputted manually by the user
if (lambda1.orig > 0 & lambda2.orig > 0) {
if (lambda1.orig > 0 | lambda2.orig > 0) {
warning("When lambda1 > 0 or lambda2 > 0, it is more reliable to let 'glmsmurf' or 'glmsmurf.fit' compute the penalty weights instead of inputting them manually via 'pen.weights'. ")
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment