simulate_group_data_from_summary_stats
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
Platform Compatibility
Windows macOS LinuxCategories
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Version | Published | Release Notes | |
---|---|---|---|
1.0.0.0 |