Does anyone recall what that discussion was about so that I can send the url for those posts? Is anybody familiar enough with the new procedure for GEE to say it might be a place to look? Art Kendall Social Research Consultants -------- Original Message --------
Art Kendall
Social Research Consultants |
Administrator
|
The data Nancy describes have a multilevel structure, with daily data at level 1 and "one-time" (or patient level) data at level 2. I'm still on v18, but I believe the new multilevel GENLIN procedure in v19 can perform multilevel regression with a binomial error distribution and a variety of link functions (e.g., logit link if you want mulilevel logistic and odds ratios, or an identity link function if you want risk differences, etc). Someone who has v19 may be able to comment further.
HTH.
--
Bruce Weaver bweaver@lakeheadu.ca http://sites.google.com/a/lakeheadu.ca/bweaver/ "When all else fails, RTFM." PLEASE NOTE THE FOLLOWING: 1. My Hotmail account is not monitored regularly. To send me an e-mail, please use the address shown above. 2. The SPSSX Discussion forum on Nabble is no longer linked to the SPSSX-L listserv administered by UGA (https://listserv.uga.edu/). |
I'll offer a massive simplification of the statistical problem.
I notice that there are 1000 patients, and 502 transfusion events. Since some patients had more than one, there are fewer than 500 patients with a transfusion.... Presumably the others were selected by criteria which do need to be noted. The model should be divided into two questions - "Transfusion: Yes/no"; and "When". Or perhaps the main interest will be satisfied by the first question alone. Or, the answers to the first question should be the starting point for looking at the second question. The question of "When" might be simplified, also, by deciding to model the occurrence of "First transfusion". Whether it is worth looking at additional transfusions could depend on the amount of data available. ---------------------------------------- > Date: Sat, 7 May 2011 06:36:07 -0700 > From: [hidden email] > Subject: Re: Fwd: Statistical Consulting Section: modeling a binomial outcome measured multiple days > To: [hidden email] > > The data Nancy describes have a multilevel structure, with daily data at > level 1 and "one-time" (or patient level) data at level 2. I'm still on > v18, but I believe the new multilevel GENLIN procedure in v19 can perform > multilevel regression with a binomial error distribution and a variety of > link functions (e.g., logit link if you want mulilevel logistic and odds > ratios, or an identity link function if you want risk differences, etc). > Someone who has v19 may be able to comment further. > > HTH. > -- Rich Ulrich ===================== To manage your subscription to SPSSX-L, send a message to [hidden email] (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 |
In reply to this post by Art Kendall
Art,
A GEE/Generalized Linear Model can be fit employing the GENLIN procedure in SPSS. GENLIN is capable of fitting various generalized linear models that account for correlation among repeated measures.
I provide a simple example below which assumes data are derived from a logistic regression equation with correlation among repeated observations. Note that data for 1000 subjects are generated, all of whom are measured 50 times. Also note that a time-varying covariate, x1, was incorporated into the model.
**I wrote the code below very fast. Apologies if there are any typos.
HTH,
Ryan
*Generate Data.
set seed 98765432. new file.
inp pro. comp ID = -99.
comp x1 = -99. comp b0 = -99. comp b1 = -99. comp rand_eff = -99. comp time = -99. leave ID to time.
loop ID = 1 to 1000.
comp b0 = -0.5. comp b1 = 1.0. comp rand_eff = sqrt(.3)*rv.normal(0,1). loop time = 1 to 50.
comp x1 = rv.normal(2,1). comp eta = b0 + b1*x1 + rand_eff. comp p = exp(eta) / (1 + exp(eta)). comp y = rv.bernoulli(p). end case.
end loop. end loop. end file. end inp pro. exe. Delete variables b0 b1 rand_eff eta p.
GENLIN y (REFERENCE=FIRST) WITH x1
/MODEL x1 INTERCEPT=YES DISTRIBUTION=BINOMIAL LINK=LOGIT /REPEATED SUBJECT=ID WITHINSUBJECT=time SORT=YES CORRTYPE=EXCHANGEABLE ADJUSTCORR=YES COVB=ROBUST MAXITERATIONS=100 PCONVERGE=1e-006(ABSOLUTE) UPDATECORR=1 /PRINT CPS DESCRIPTIVES MODELINFO FIT SUMMARY SOLUTION. On Sat, May 7, 2011 at 7:42 AM, Art Kendall <[hidden email]> wrote:
|
One more point--I specified an EXCHANGEABLE covariance structure based on the data simulation. When working with real-world data, however, one often observes more complex covariance structures. One such structure that immediately comes to mind when dealing with temporal data is the first-order autoregressive structure. Generally speaking, the first-order autoregressive structure assumes decaying correlations as observations become more distant in time. Another covariance structure to consider would be the unstructured type, though this may be overkill depending on the data.
Ryan
On Sun, May 8, 2011 at 10:53 PM, R B <[hidden email]> wrote:
|
Free forum by Nabble | Edit this page |