Programming the statistical procedures from SAS

calcualting predicted values and producing contingency tables in sas phreg

Reply
New Contributor
Posts: 4

calcualting predicted values and producing contingency tables in sas phreg

proc phreg data=work.IMPORT;

model Time*y(0)= Weather_1 Lighting_2 Time_2 vehicles_hr / ties=DISCRETE;
strata ObjectID Year Day Month;
run;

 

i want to include prediction values and contingency tables in sas phreg. Is there any way to include both of them in the code.

 

Thank you,

Naveen

New Contributor
Posts: 4

calcualting predicted values and producing contingency tables sas phreg

proc phreg data=work.IMPORT;
model Time*y(0)= Weather_1 Lighting_2 Time_2 vehicles_hr / ties=DISCRETE;
strata ObjectID Year Day Month;
run;

 

i want to include prediction values and contingency tables in sas phreg. Is there any way to include both of them in the code.

 

Thank you,

Naveen

SAS Employee
Posts: 448

Re: calcualting predicted values and producing contingency tables in sas phreg

Because PROC PHREG is in SAS/STAT, please post in the stat procs community instead.
New Contributor
Posts: 4

Re: calcualting predicted values and producing contingency tables in sas phreg

Thank you @RobPratt

Super User
Posts: 18,569

Re: calcualting predicted values and producing contingency tables in sas phreg

@Naveen1993 I've moved your question to the Statistical Forum as well as combined your two posts into one post. 

 

Have you checked the OUTPUT data set?

 

output out=want survival=surv;

I'm a touch confused though, this is typically a survival analysis procedure but it can be used for conditional logistic regression. 

A contingency table is from logistic Regression, not survival analysis as far as I know.

My stats is rusty so I can easily be wrong here.

 

Please review the documentation for the all the statistics available in your OUTPUT dataset:

http://support.sas.com/documentation/cdl/en/statug/68162/HTML/default/viewer.htm#statug_phreg_syntax...

New Contributor
Posts: 4

Re: calcualting predicted values and producing contingency tables in sas phreg

Thank you @Reeza for the information. I'll try the output statement in my project.

 

Naveen

Ask a Question
Discussion stats
  • 5 replies
  • 171 views
  • 0 likes
  • 3 in conversation