turn on suggestions

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

Find a Community

- Home
- /
- SAS Programming
- /
- Base SAS Programming
- /
- Cox model with time-dependent variables

Topic Options

- RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page

- Mark as New
- Bookmark
- Subscribe
- RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

01-05-2016 04:04 PM

Hi,

I have a question regardning Cox model with time-dependent variables.

I have a data set that contains the following variables:

A vector x_it of internal covariantes, with values specific to the firm, as well as a vector z_t of external macroeconomic covariates, with values common to all firms in the sample. I want to use the model

lambda_(it) = lambda_0 * exp( beta*x_(it) + gamma * z_(t-1) )

and then estimate the coefficents (beta, gamma).

My problem is that I don't know how to add the term: gamma*z(t-1), in my SAS Code where I use the procedure PROC PHREG. Currently, I use the programming statement method in order to handle the time dependent covariates x_(it).

Thanks.