Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How settings StudentsTtestTwoSample for same result of T.TEST from Excel #3

Open
GBonnaire opened this issue Jun 16, 2023 · 2 comments

Comments

@GBonnaire
Copy link

Hi,

When i use StudentsTtestTwoSample, i don't have same result in Excel. How i can fix that ?

var treatmentResults = [
            { before: 204, after: 189 },
            { before: 212, after: 199 },
            { before: 199, after: 191 },
            { before: 209, after: 182 },
            { before: 191, after: 176 },
            { before: 190, after: 180 },
            { before: 223, after: 220 },
            { before: 185, after: 182 },
            { before: 206, after: 194 },
            { before: 212, after: 216 }
        ];

        var testVars = { before: 'metric', after: 'metric'  };
        var stats = new Statistics(treatmentResults, testVars, settings);
        var treatmentSuccess = stats.studentsTTestTwoSamples('before', 'after', { dependent: true });

Result with your lib : "pOneSided": 0.002119623339108534
Result with Excel : "=T.TEST(A1:A10;B1:B10;1;1)" 0,001512746

Thanks for your helps

@GBonnaire
Copy link
Author

@thisancog If you can help me, please 😊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
@GBonnaire and others