Recommend a Statistical Test from Simple Data Properties
Source:R/recommend_test.R
recommend_test.RdUses a rule-table driven engine to recommend a statistical test, request more information, or stop an inappropriate branch.
Usage
recommend_test(
data,
outcome,
group = NULL,
id = NULL,
goal = "difference",
paired = "no",
repeated = "no",
adjust = "no",
outcome_type = NULL,
normality = "auto",
language = "en"
)Arguments
- data
A data frame.
- outcome
Name of the outcome column.
- group
Optional name of the group column.
- id
Optional subject identifier column.
- goal
Analysis goal. One of
"difference","association","adjusted_effect","time_to_event","agreement", or"equivalence".- paired
"yes"or"no".- repeated
"yes"or"no".- adjust
"yes"or"no".- outcome_type
Optional manual outcome type. One of
"continuous","binary","nominal","ordinal", or"count". WhenNULL, it is guessed.- normality
One of
"auto","yes","no", or"unknown".- language
"en"or"ja".