Skip to content
New issue

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

[BUGZILLA #17713] spurious warning message from termplot #6887

Open
MichaelChirico opened this issue May 19, 2020 · 0 comments
Open

[BUGZILLA #17713] spurious warning message from termplot #6887

MichaelChirico opened this issue May 19, 2020 · 0 comments

Comments

@MichaelChirico
Copy link
Owner

y <- rnorm(10)
x1 <- runif(10)

fit <- lm(y∼ x1 + I(1:10) )
termplot(fit)

Issue: the following line of code is being fooled

if (any(grepl(":", nmt, fixed = TRUE))) 
    warning("'model' appears to involve interactions: see the help page", 
        domain = NA, immediate. = TRUE)

Suggested fix: replace the conditional with
if (any(attr(terms(mf), "factor") > 1))
warning( ....


METADATA

  • Bug author - Terry Therneau
  • Creation time - 2020-02-14 22:48:34 UTC
  • Bugzilla link
  • Status - UNCONFIRMED
  • Alias - None
  • Component - Models
  • Version - R 3.6.xx
  • Hardware - Other Linux
  • Importance - P5 minor
  • Assignee - R-core
  • URL -
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant