validate_maraca_plot: Generic function to generate validation data for the maraca...

View source: R/maraca.R

validate_maraca_plotR Documentation

Generic function to generate validation data for the maraca plot object.

Description

This will produce the 4 validation datasets.

Usage

validate_maraca_plot(x, ...)

Arguments

x

An object of S3 class 'maracaPlot'.

...

Not used.

Value

Creates a list of datasets for validation purposes.

Examples

data(hce_scenario_a)
hce_test <- maraca(
  data = hce_scenario_a,
  step_outcomes = c("Outcome I", "Outcome II", "Outcome III", "Outcome IV"),
  last_outcome = "Continuous outcome",
  fixed_followup_days = 3 * 365,
  column_names = c(outcome = "GROUP", arm = "TRTP", value = "AVAL0"),
  arm_levels = c(active = "Active", control = "Control"),
  compute_win_odds = TRUE
)
p <- plot(hce_test)
validate_maraca_plot(p)


maraca documentation built on May 29, 2024, 8:08 a.m.