Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • $\begingroup$ I am going to add fixed effects such as age, this is just my starting point. In what situation would you use the second type of PHREG with the entry statement? $\endgroup$ Commented Nov 16, 2017 at 19:01
  • $\begingroup$ @ScottJackson it is a data formatting issue, the SAS syntax is nebulous to me. If you have time varying covariates, you must transpose from a wide format to a long format, so that there are one or possibly two rows of data for each participant. The t1 survival time should be 0 for non-truncated, or the difference between start-of-observation (2003) and transplant date or operation date for truncated entry. $\endgroup$ Commented Nov 16, 2017 at 19:22
  • $\begingroup$ Right, you can do it that way but there's also a shortcut where you can use a programming statement within PROC PHREG like I wrote. Thanks for the help. $\endgroup$ Commented Nov 16, 2017 at 19:32