Skip to content

stat_line.m

Calvin Eiber edited this page Jun 30, 2021 · 1 revision

function [s] = tools.stat_line(x1, x2, discription_text) compute some summary statistics for a pair of populations. The mean and standard deviation of each population are displayed, along with a small battery of comparison statistics (ttest2, ranksum, kstest). The struct contains additional statistics (median, sem, corr and paired t-test for equal-sized x1 and x2). Calling stat_line with just a struct s reproduces the display (which is only generated if nargout == 0).

tools.stat_line is part of package +tools

Version 0.2 Calvin Eiber 16-Apr-2020 (added paired t-test). Adapted from HandyStat (P.R. Martin and S.G. Solomon, 2001)

Clone this wiki locally