Print

Print


SPM8 uses the general linear model. As such all covariates are treated as continuous/interval.

If you want to use a nominal/nominal variable, then you have three options:
(1) If it is 2 levels and only 2 levels, you can mean center the variable. The main effect will then be the mean effect of all subjects. The effect of the covariate will be the difference in your two levels.

(2) If you have 2 levels, you could make the covariate 0s and 1s. Then the main effect will be the effect in the group with the covariate value of 0 and the value of the covariate is the difference between the two groups.

(3) If you have more than 2 levels, then you will want to create dummy variables for each group and add 2 dummy variables to the model. One group is not included in the model and the main effect of group regressor is for the group that is not dummy coded.


Best Regards, Donald McLaren
=================
D.G. McLaren, Ph.D.
Research Fellow, Department of Neurology, Massachusetts General Hospital and
Harvard Medical School
Postdoctoral Research Fellow, GRECC, Bedford VA
Website: http://www.martinos.org/~mclaren
Office: (773) 406-2464
=====================
This e-mail contains CONFIDENTIAL INFORMATION which may contain PROTECTED
HEALTHCARE INFORMATION and may also be LEGALLY PRIVILEGED and which is
intended only for the use of the individual or entity named above. If the
reader of the e-mail is not the intended recipient or the employee or agent
responsible for delivering it to the intended recipient, you are hereby
notified that you are in possession of confidential and privileged
information. Any unauthorized use, disclosure, copying or the taking of any
action in reliance on the contents of this information is strictly
prohibited and may be unlawful. If you have received this e-mail
unintentionally, please immediately notify the sender via telephone at (773)
406-2464 or email.


On Mon, Jun 30, 2014 at 10:09 AM, SUBSCRIBE SPM RebZ <[log in to unmask]> wrote:
Dear All,

I am a bit confused about the fact that you can entered each kind of variables (i.e. age, gender, and education and so on) as covariates in SPM but you don't need to define which kind of variables it is (i.e. level of measurement). How SPM detects the type of data (i.e. nominal, ordinal, and interval)?
Especially, If I use "gender" as covariate, how SPM takes into account this "nominal type" of data.

It would be very nice if anybody knows how it works in SPM.

Best,
RebZ