Date: Fri, 23 Mar 2012 10:41:16 -0700
Reply-To: Ange <angelavazquezalvarez@yahoo.es>
Sender: "SPSSX(r) Discussion" <SPSSX-L@LISTSERV.UGA.EDU>
From: Ange <angelavazquezalvarez@yahoo.es>
Subject: Re: Conditional logistic regression in SPSS with CoxReg option
In-Reply-To: <1332521771601-5590108.post@n5.nabble.com>
Content-Type: text/plain; charset=UTF-8
Following this example :
http://www.indiana.edu/~statmath/stat/all/cat/2c2.html
suggested by Anthony Babinec, I´m going to try to simulate the data
insertion, so you could correct me in case it´s necessary:
I have to create a variable to each attribute of the chocolat, and then,
depending on the alternative, give them certain value (0 or 1).
I have to create a variable to represent the respondents called "id" for
example.
I have to create a variable which is labelled (for example) "choice", which
value is 1 if the respondent chooses the alternative, and 0 otherwise.
And finally I should create the variable "time", which is 1 if the
respondent choses the alternative, an 2 otherwise:
Example of the resolution (imagine this table is introduced in SPSS):
id kind dark nuts soft choice t
1 1 0 0 0 1 1
1 2 1 1 0 0 2
1 3 0 1 0 0 2
1 4 0 0 1 0 2
1 5 0 1 1 0 2
1 6 1 1 1 0 2
1 7 1 0 0 0 2
1 8 1 0 1 0 2
and so on ... (this represent the choice of one person, and the kind
variable represents the kind of chocolate which is the "añternative" the
respondent may choose)
To conduct the cos regression I should click: Analysis -> survival -> cox
regression; and then:
Time: I shoul give the "t" variable
Status: the variable choose (specifying that takes the value 1)
Covariables: dark, soft and nuts
Strata: I shoul indicate: "id" variable.
And that´s all??
Am I mistaken??? I have some doubts concerning the codification of the "t"
variable...
Thanks!! Hope this "example" could clear up the missunderstandings...
--
View this message in context: http://spssx-discussion.1045642.n5.nabble.com/Conditional-logistic-regression-in-SPSS-with-CoxReg-option-tp5589618p5590274.html
Sent from the SPSSX Discussion mailing list archive at Nabble.com.
=====================
To manage your subscription to SPSSX-L, send a message to
LISTSERV@LISTSERV.UGA.EDU (not to SPSSX-L), with no body text except the
command. To leave the list, send the command
SIGNOFF SPSSX-L
For a list of commands to manage subscriptions, send the command
INFO REFCARD