Skip to contents

run_test() runs the base-R method selected by recommend_test(). If the branch is redirected or stopped, the function terminates with the reason reported by the decision object.

Usage

run_test(
  data,
  outcome,
  group = NULL,
  id = NULL,
  goal = c("difference", "association", "adjusted_effect", "time_to_event", "agreement",
    "equivalence"),
  outcome_type = c("auto", "continuous", "binary", "nominal", "ordinal", "count"),
  paired = c("no", "yes"),
  repeated = c("no", "yes"),
  adjust = c("no", "yes"),
  normality = c("auto", "yes", "no", "unknown")
)

Arguments

data

A data.frame.

outcome

Name of the outcome column.

group

Optional name of the group column.

id

Optional name of the subject identifier column.

goal

One of "difference", "association", "adjusted_effect", "time_to_event", "agreement", or "equivalence".

outcome_type

One of "auto", "continuous", "binary", "nominal", "ordinal", or "count".

paired

"yes" or "no".

repeated

"yes" or "no".

adjust

"yes" or "no".

normality

One of "auto", "yes", "no", or "unknown".

Value

An object of class statsguider_result.