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
Minimal example:
data <- data.frame(y = c(1, 2, 3)) rms::cr.setup(data$y)
produces
Error in factor(cuts, levels = 0:(kint - 1), labels = labels) : invalid 'labels'; length 4 should be 1 or 2
while with(data, rms::cr.setup(y)) works as expected.
with(data, rms::cr.setup(y))
Perhaps this should be documented, or a line such as if(length(yname) > 1) yname <- "y" could make the function more robust.
if(length(yname) > 1) yname <- "y"
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Minimal example:
produces
while
with(data, rms::cr.setup(y))
works as expected.
Perhaps this should be documented, or a line such as
if(length(yname) > 1) yname <- "y"
could make the function more robust.
The text was updated successfully, but these errors were encountered: