Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upeliminate = NULL in gnm #14
Comments
|
Thanks for the report. The fix was slightly more complicated as |
Calling gnm with 'eliminate = NULL' leads to failure despite the fact that NULL is the default value of eliminate. The reason is the code snippet
if (!missing(eliminate)) {
eliminate <- modelData$
(eliminate)if (!is.factor(eliminate))
stop("'eliminate' must be a factor")
Wouldn't it be better to replace the first line with 'if (!is.null(eliminate))'?