Skip to contents

select_test() is the shortest wrapper in the package. It accepts the same arguments as recommend_test(), plus a run choice that decides whether the function only recommends a method or executes it immediately.

Usage

select_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"),
  run = c("recommend", "run")
)

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".

run

Either "recommend" or "run".

Value

A statsguider_decision object or a statsguider_result object.