smartdata-analysis-and-statistics / precmed

A doubly robust precision medicine approach to estimate and validate conditional average treatment effects
https://smartdata-analysis-and-statistics.github.io/precmed/
Apache License 2.0
4 stars 0 forks source link

what.ratio variable in plot: correct name? #28

Closed StanWijn closed 1 year ago

StanWijn commented 1 year ago

plot.R at line 215:

 # Define y-axis if default is NULL
  if (is.null(ylab)){
    if (x$response == "count"){
      what.ratio <- "Rate ratio"
    } else if (x$response == "survival"){
      if (plot.hr == TRUE){
        what.ratio <- "Hazard ratio"
      } else {
        what.ratio <- "RMTL ratio"
      }
    } else if (x$response == "continuous"){
      ##TODO: what.ratio? correct name?
      what.ratio <- "Mean difference"
    }

Suggestion: rename what.ratio to plot.ratio