help > RE: Excluding Subjects
Jun 23, 2014  08:06 PM | Alfonso Nieto-Castanon - Boston University
RE: Excluding Subjects
Hi Harriet,

Yes, there are a couple of ways to do this:

1) create new second-level covariates that have the same values as your original ones except that they have zeros for the subjects that you want to exclude, then simply use these new covariates in your second-level analyses. By default CONN will exclude from a second-level analysis any subject where *all* of the selected between-subject effects are zero (this is the same strategy used, for example, when you want to perform within-group second-level analyses)

or 2) create a new second-level covariate for each subject you want to exclude (dummy coded, 1 for the excluded subject and 0 for everyone else; one covariate for each excluded subject - not all excluded subjects in a single covariate). Then simply include these new covariates in any analysis where you want to exclude some subjects).

Both approaches are exactly equivalent, and they will produce the exact same results.  For "sanity-checking" look at the degrees of freedom of the results, they should always be equal to the number of subjects included in your analyses minus the number of between-subject effects included in the analyses.

Hope this helps
Alfonso


Originally posted by Harriet Johnston:
Hello,
I'm wondering if there is a way to exclude particular subjects from 2nd level analysis (if they've already been  included in first level analysis) - I see I can delete subjects - but the problem with that is that all the subject numbers after the deleted subject are changed and I don't want that - there a few subjects I'd like to exclude having gained a bit more knowledge of problems within their data...without having to start a whole new project as I don't have the time to start the analysis from scratch.
Any efficient suggestions welcome :)
Thanks
Harriet

Threaded View

TitleAuthorDate
Harriet Johnston Jun 23, 2014
RE: Excluding Subjects
Alfonso Nieto-Castanon Jun 23, 2014
Chihhao Lien Sep 20, 2022
Yoshiko Yabe Mar 13, 2023
Alfonso Nieto-Castanon Mar 15, 2023
Reza Momenan Dec 29, 2023
Reza Momenan Dec 29, 2023
Alfonso Nieto-Castanon Sep 26, 2022
Chihhao Lien Sep 27, 2022
Harriet Johnston Jun 23, 2014