LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (November 1999, week 3)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Tue, 16 Nov 1999 01:07:52 GMT
Reply-To:     machellew@MY-DEJA.COM
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         machellew@MY-DEJA.COM
Organization: Deja.com - Before you buy.
Subject:      Re: Converting to events/trials data format?

Hi Jin:

I just read Dan Norlund's response to you, and on the off chance that he wasn't getting to what you're after (I know he's helped me in the past!), here are my 2cents:

If your variable labeled 'result' is your outcome or dependent variable that you want to use for proc genmod, and if each observation represents an individual trial (i.e. these are separate patients, etc..) then what you can easily do is to add a line of code:

Trials=1; or maybe x=1;

then in proc genmod your model statement would be: model result/trials=var1 var2 var3; or moel result/x=var1 var2 var3;

In proc logistic, you don't actually need the events/trials syntax, so just set the dichotomous 'result' variable as your dependent variable and off you go.

Good luck :)

Machelle Wilchesky Department of Clinical Epidemiology Royal Victoria Hospital Montreal, Quebec Canada

In article <38307051.8AE732EC@chollian.net>, Jin Kim <kimjin43@chollian.net> wrote: > Dear SAS-L > > As a SAS novice, I want to know the method how I convert the following > ordinary data to 'events/trials' data format, which can be used in PROC > LOGISTIC or GENMOD. > > (Of course, I know that above PROCs are possible with ordinary data. > This question is of educational purpose.) > > In the following example data, 'var1-3' are categorical explanatory > variables, and 'result' is a binary response variable. > > var1 var2 var3 result > obs1 1 1 2 0 > obs2 2 2 2 1 > obs3 3 1 1 0 > obs4 2 2 1 1 > obs5 1 1 2 1 > . . . . . > . . . . . > . . . . . > > How can I convert the ordinary data like above to 'events/trials' > format? > > Thank you. > > Jin Kim > >

Sent via Deja.com http://www.deja.com/ Before you buy.


Back to: Top of message | Previous page | Main SAS-L page