stan-dev / stan-dev/rstanarm

warning message using plot() with model created by stan_surv

Open
#649 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
R
Stars
401
Forks
136
PR merge metrics
No merged PRs in 30d

Description

I have been using the stan_surv function of rstanarm (version 2.36.0.9000) for some survival analyses and it is working well. However, when I use the plot() function on the model to display the baseline hazard, I get this warning:

aes_string()was deprecated in ggplot2 3.0.0. ℹ Please use tidy evaluation idioms withaes(). ℹ See also vignette("ggplot2-in-packages")` for more information.
ℹ The deprecated feature was likely used in the rstanarm package.

Is it possible to update this feature, or am I using an out of date version of rstanarm?
Many thanks

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the warning by calling plot() on a model created with stan_surv and displaying the baseline hazard. Search the package's plotting code for the deprecated aes_string() usage and verify that the warning disappears while the baseline hazard plot still renders correctly.

Written by the indexing model from the issue text.

Assessment

Tech stack
r
Domain
data-visualization
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.