R/longitudinal_plot_helpers.R

Defines functions inv_logit .no_dummy_labels

#' Helper to turn off faceting for dummy grouping
#' @keywords internal
#' @noRd

.no_dummy_labels <- function(group, facetGroups) {
  if (all(group == "dummyGroup")) {
    facetGroups <- FALSE
  }
  return(facetGroups)
}

#' Helper for plotting changepoint models
#' @keywords internal
#' @noRd

inv_logit <- function(x) {
  return(1 / (1 + exp(-x)))
}

Try the pcvr package in your browser

Any scripts or data that you put into this service are public.

pcvr documentation built on April 16, 2025, 5:12 p.m.