Write a matlab script to perform paired t-tests for consecutive years

2 views (last 30 days)
Hi, I have matrix with data for 8 years, i want to perform a paired t-test, i know i can use ttest code, buti want a way to call the consecutive years in matrix so that i can perform ttest

Answers (1)

Star Strider
Star Strider on 16 Feb 2015
Be careful how you do that, since it’s not clear from your description what you are doing. The One-sample and paired-sample t-test or Two-sample t-test may not be appropriate. Either the Multiple comparison test or Multiple comparison of estimated marginal means may be correct.
Consult your local statistician for assistance first before you go further.

Tags

Community Treasure Hunt

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

Start Hunting!