🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by vsingleton Sat, 14 Apr 2007 19:10
survival in SAS vs R
#246
Author: vsingleton
Date: Sat, 14 Apr 2007 19:10
17 lines
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.
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads