Dealing with discrete variables as discrete is the way I would do it as you would not have any reason to think that there is some linear relationship between your the (arbitrary) values you assign to discrete variables and thickness. Age is not an arbitrary value, so I would use that as a continuous variable.
On 10/27/2021 6:06 AM, Thalhammer, Melissa wrote:
External Email - Use Caution
Dear FreeSurfer users,
I am interested in cortical thickness differences between preterm (PT) and fullterm (FT) individuals. I have used DODS with mri_glmfit and wanted to regress out scanner (4 sites) and sex in the analysis, using the attached FSGD file. Both of the variables are discrete and I have found different information on how to include discrete variables into the model.
I have followed Andrew Jahn's blog at first who includes discrete variables in the variable list just as continuous ones and specifies them with values of 0 or 1 (MailScanner has detected a possible fraud attempt from "secure-web.cisco.com" claiming to be https://andysbrainbook.readthedocs.io/en/latest/FreeSurfer/FS_ShortCourse/FS_07_FSGD.html). I have adapted this procedure and have specified my gender values as 1 and 2 (simply because it was stated like this in the participants information sheet I have received).
Recently, I have read a post on the mail archive, where Doug states: "you should not code gender and handedness as a continuous variables. In doing this, you are saying that you expect right handers to have 2x the thickness as left handers (or females to have 2x the thickness as males)" (MailScanner has detected a possible fraud attempt from "secure-web.cisco.com" claiming to be https://www.mail-archive.com/freesurfer@nmr.mgh.harvard.edu/msg27832.html). When following this argument, this would also hold for continuous variables, i.e., a patient aged 50 would have 2x the thickness of a patient aged 25.
So my question is how to correctly deal with discrete variables and why you have suggested to code gender as classes instead of variables. What is the actual difference? How does the model treat classes and variables?
Cheers and many thanks in advance,
Melissa Thalhammer
_______________________________________________ Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edu https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer