Proc Lifereg Hazard

sas

    Next

  • 1. libname pointer using 'access=readonly' yeilds WARNING: The SASMACR.SASMACR catalog is opened for read only
    In Google groups (groups.google.com) search for: automated log findstr group:comp.soft-sys.sas Lex Jansen "Nova's Taylor" < XXXX@XXXXX.COM > wrote in message news: XXXX@XXXXX.COM ... > According to this Tech Note, SAS states that it is best to use operating > System Commands to facilitate sharing of compiled macros: > "SN-000445 How to have shared access with the stored compiled macro > facility " > > However, as the note states, it will still result in the WARNING message, > so I fail to see the difference in using OS commands versus > ACCESS=READONLY. What is to stop anyone from changing the attributes back, > unless you restrict permissions on the folder or catalog? (oh no - more > overhead for your friendly neighborhood SAS Sys Admin! Ack!) > > If you have a program that automagically parses your log files looking for > WARNINGS, ERRORS, etc., you could place this particular message in an > "exceptions" list so it won't flag it for you. > > Just my $.02. I think you will find similar offerings in the archive from > Ron and Lex on this very topic. > Cheers, > T
  • 2. HELP - Data Manipulation
    I have a variable that is coded 1 = Yes 2 = No and 3 = Unchanged from last visit. I need to be able to convert all the "3" to "Yes" or "No" based on the last visit the variable was recorded as a 'Yes" or "No". A patient may have several "Unchanged from last visit" interspersed in with Yes and No answers and for each instance I have to look for the last Yes, No answer given. See data below: ID Visit Var1 10001 6M 2 10001 12m 2 10001 24m 3 10001 36m 1 10001 60m 3 10002 1m 1 10002 12m 3 10002 36m 3 10002 48m 2 10002 60m 3 Any thoughts? Thanks
  • 3. libname pointer using 'access=readonly' yeilds WARNING: The SASMACR.SASMACR catalog is opened for read only
    My libname pointer uses access=readonly, which I want, but at the price of SAS writing a warning to my log- WARNING: The SASMACR.SASMACR catalog is opened for read only. Is there an option (presumably similar to NOFMTERR) where SAS won't tell me what I already know regarding this? thanks, Stephen

Proc Lifereg Hazard

Postby jeffrey.m.allard » Sat, 12 Apr 2008 11:03:34 GMT

Two quick survival analysis questions

1) I have time to event data which is measured on a day scale (event
happens 1 day from start or 2 days or....n days) and can be heavily
tied. Using proc lifereg (parametric model) should I consider this
discrete data and use interval censoring?

2) Using proc lifereg, I can output cdf (output out=table cdf=c) and
from this I can get the survivor probability (1- cdf) but is there a
way to get the hazard rate (or in my case with discrete data the
hazard probability)?

Thanks!

Re: Proc Lifereg Hazard

Postby A Sanders » Sat, 12 Apr 2008 23:38:34 GMT



Why not use PHREG?

Re: Proc Lifereg Hazard

Postby mlhoward » Sun, 13 Apr 2008 00:34:38 GMT

I'm not an expert, but did take the SAS Survival analysis course.  PROC =
PHREG was used rather than LIFEREG for this; I'm not sure of the =
difference, but in PHREG the Hazard ratio and the 95% confidence rates =
on the Hazard ratio are part of the table showing the Analysis of =
Maximum Likelihood.

It would go something like this:

proc phreg data=3Dset1 simple;
     model days*status(0)=3D var1 var2 var3/ties=3Dexact r1;
run;


As to ties, I'm not sure of the theory here- my examples from my course =
use the ties=3Dexact option in PHREG.=20

-Mary
  ----- Original Message -----=20
  From:  XXXX@XXXXX.COM =20
  To:  XXXX@XXXXX.COM =20
  Sent: Thursday, April 10, 2008 9:03 PM
  Subject: Proc Lifereg Hazard


  Two quick survival analysis questions

  1) I have time to event data which is measured on a day scale (event
  happens 1 day from start or 2 days or....n days) and can be heavily
  tied. Using proc lifereg (parametric model) should I consider this
  discrete data and use interval censoring?

  2) Using proc lifereg, I can output cdf (output out=3Dtable cdf=3Dc) =
and
  from this I can get the survivor probability (1- cdf) but is there a
  way to get the hazard rate (or in my case with discrete data the
  hazard probability)?

  Thanks!

Similar Threads:

1.Difference between proc reg and proc lifereg.

Hi,

What is the difference between a proc reg and  proc lifereg procedure. If
possible i need an explanation to be not too
technical.

Thanks,
Sa

2.PROC LIFEREG

Hello,

My problem is the following : I'm working with the PROC LIFEREG and I
would like to calculate the estimated time on validation data.
Does anyone know which formula I have to apply on my validation data
to get the estimated time ?

I used the Exponential distance.

proc LIFEREG data=training outest=A;
model TIME*cens(1)=&VARLIST/DIST=EXPONENTIAL;
output out=B xbeta=XB ;
run;

data predict;
 set validation;
estimate_time=exp(xbeta); /*I don't find the exact formula to apply*/
run;


Thanks in advance,

Please send me your ideas to my office mail :
 XXXX@XXXXX.COM 

Nathalie

3.proc lifereg generalized gamma distribution

When using PROC LIFEREG, what does the coefficient reported for covariates
mean? Is it the hazard ratio, or does the hazard ratio have to be
calculated using the scale parameter in the same way as when using the
Weibull distribution in SAS?

Jamie Griffin.

4.PROC LIFEREG: Estimating Failure Time Distribution

Hi All,

The problem is as follows: I have a set of customers, who took their
first product on a particular month of a year. I have observed them over
a 12 month window to check if they have taken up a second product. My
problem is to find out, if the customer will take up a second product
and when.

While using PROC LIFEREG, the failure time distribution (Option DIST = blah
blah in PROC LIFEREG) I am estimating is not correct. Hence my predicted
survival probabilites are going haywire. I have tried out all the "DIST = "
options provided in SAS.

Is there anyway I can force fit the underlying failure time distribution
given that, I have the hazard function and survival function available to
me from the Life Tables using PROC LIFETEST.

Awaiting your answers.

Thanks
Nirmalya

5.PROC LIFEREG for Tobit model

I tried to replicate the Tobit Regression in Long (1997:p.189). At the
begining, I generated population data with around 200 observations
following y=1.2+0.08x+e. Then, I censored observation if y<1.
In theory, the tobit regression should have to generate the similar
coefficents of the population data. However, I could not get it.
Here are my SAS code. Do anybody have a good idea about this.
Many thanks in advance.

DATA test;
DO I=0 to 14 by 0.07;
	X=i;
	Y=1.2+0.08*X+RANNOR(0);
	OUTPUT;
END;
run;
DATA test2;
set test;
IF y<1 then censor=1;
ELSE censor=0;
IF censor=1 then Y=0;
if y eq 0
         then Lower=.;
         else Lower=y;
run;
PROC LIFEREG data=test2;
 model (lower,y)=x/d=normal;
run;

6. What do the Estimates from PROC LIFEREG Represent?

7. Using Proc NLMIXED to estimate a multilevel discrete-time hazard model

8. AW: phreg proc&proportional hazard assumption



Return to sas

 

Who is online

Users browsing this forum: No registered users and 66 guest