Input varaibles ttest2
3 views (last 30 days)
Show older comments
Is it possible to use scalars as input in ttest2? I would like to write something like this; [h, p]=ttest2(average1, average2, variance1, variance2, N1, N2, 'Vartype', 'unequal')
What I want to do is check if there is a difference in means between two measured populations with different variances. Only problem is have large amounts of data and only save the averages and variances for each iteration through a loop, and thus have not got easy access to the full data set needed as input to ttest2. Any suggestions on how to work around this problem would be higly appreciated.
2 Comments
Rik
on 14 Aug 2020
Alternatively you could generate data with this average and variance, although you will have to do some assumptions about your distributions.
Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!