Article View: aus.stats.s
Article #246survival in SAS vs R
From: vsingleton
Date: Sat, 14 Apr 2007 19:10
Date: Sat, 14 Apr 2007 19:10
17 lines
1596 bytes
1596 bytes
Here is some code we were using in SAS: proc phreg data=a; model (start,stop)*event(0)=age/ ties=efron ; age=start-stop; We were guessing we might be able to use "coxph" from the survival package in R to do the same test, but we are not sure how to set age as a time varying covariate. In other words, age will increase as the model runs. We want to determine if an increase in age leads to a risk of failure. If anyone can help us find the equivalent to this in R, we would be greatly appreciative.
Technical Details
Message-ID:
<1176577839.458390.287650@e65g2000hsc.googlegroups.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!postnews.google.com!e65g2000hsc.googlegroups.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: fa931,6cb017daedfe17f1,start X-Google-Attributes: gidfa931,public X-Google-Language: ENGLISH,ASCII-7-bit Path: arc1-ca.pugleaf.net!g2news1.google.com!postnews.google.com!e65g2000hsc.googlegroups.com!not-for-mail From: vsingleton@gmail.com Newsgroups: aus.stats.s Subject: survival in SAS vs R Date: 14 Apr 2007 12:10:39 -0700 Organization: http://groups.google.com Lines: 18 Message-ID: <1176577839.458390.287650@e65g2000hsc.googlegroups.com> NNTP-Posting-Host: 70.121.238.157 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: posting.google.com 1176577839 324 127.0.0.1 (14 Apr 2007 19:10:39 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Sat, 14 Apr 2007 19:10:39 +0000 (UTC) User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.10) Gecko/20070313 Fedora/1.5.0.10-5.fc6 Firefox/1.5.0.10,gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: e65g2000hsc.googlegroups.com; posting-host=70.121.238.157; posting-account=JxSdCA0AAADG85X5CK7W9q4f6i-hjYxu