This function is intended to give you a quick overview of your demographics data, it is in no way intended to replace a detailed analysis of your data. You should always visualize and analyze your data interactively instead of relying on automated methods like this. Outliers and are very common in real-world data while perfectly normal data is very rare, multiple testing may affect your results. Look at your data!
test.numerical.meandiff.unpaired(
colname,
group1_name,
group2_name,
group1_data_column,
group2_data_column
)
string, the name of the data (used to label the data in the output)
string, the name of the first group (used to label the data in the output)
string, the name of the first group (used to label the data in the output)
the data for group1 as a numerical vector. Typically a column from your demographics dataframe.
the data for group2 as a numerical vector. Typically a column from your demographics dataframe.
vector of strings, the lines of the report. You can print to STDOUT or write it to a file.