simulate_group_data​_from_summary_stats

means, stddev, n, & groupnames to input suitable for anova etc functions in the Statistics Toolbox
179 Downloads
Updated 13 Sep 2012

View License

function [x, group] = simulate_group_data_from_summary_stats(means, stddevs, n, groupnames)
% converts summary means, stddev, n, and groupnames into output suitable
% for anova etc functions in the Statistics Toolbox
% means = [mean1 mean2 ... mean_i]; stddevs = [std1 std2 ... std_i]; n = [n1 n2 ... n_i]; groupnames = {'name1','name2',...'name_i'};
% x = [x1a x1b x1c ... x2a x2b x2c ... x3a x3b x3c ...]
% group = {'name1','name1','name1', ... 'name2','name2','name2', ...'name3','name3','name3' ... }
%
% Navin Pokala 2012

Cite As

Navin Pokala (2024). simulate_group_data_from_summary_stats (https://www.mathworks.com/matlabcentral/fileexchange/38158-simulate_group_data_from_summary_stats), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2011b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.0.0