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

pair t test, usually there is only one sample per subject #63

Open
zqin1998 opened this issue Nov 6, 2024 · 1 comment
Open

pair t test, usually there is only one sample per subject #63

zqin1998 opened this issue Nov 6, 2024 · 1 comment

Comments

@zqin1998
Copy link

zqin1998 commented Nov 6, 2024

When I use matlab palm, I want to do a pair t-test, but I don't average the n samples of a subject, but input them directly, so that my design matrix will have repeated 1's under a subject. There will be no bugs. What analysis should I run at this time?
design matrix like this
1 | 1 | 0
1 | 1 | 0
1 | 1 | 0
1 | 1 | 0
1 | 0 | 1
1 | 0 | 1
1 | 0 | 1
1 | 0 | 1
1 | 0 | 1
1 | 0 | 1
1 | 0 | 1
1 | 0 | 1
1 | 0 | 1
1 | 0 | 1
1 | 0 | 1
1 | 0 | 1
1 | 0 | 1
-1 | 1 | 0
-1 | 1 | 0
-1 | 1 | 0
-1 | 1 | 0
-1 | 1 | 0
-1 | 0 | 1
-1 | 0 | 1
-1 | 0 | 1
-1 | 0 | 1
-1 | 0 | 1
-1 | 0 | 1
-1 | 0 | 1
-1 | 0 | 1
-1 | 0 | 1
-1 | 0 | 1

contrast matrix like this

1 | 0 | 0
-1 | 0 | 0

pair t test, usually there is only one sample per subject

@andersonwinkler
Copy link
Owner

Hi,
I'm not sure I follow the question but you can start a design for a paired t-test using as example those from the FSL website: https://fsl.fmrib.ox.ac.uk/fsl/docs/#/statistics/glm?id=single-group-paired-difference-paired-t-test
All the best,
Anderson

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