BookmarkSubscribeRSS Feed
farzad14000fr
Calcite | Level 5

Hello to every one,
I do my master thesis about " what is the long term effect of month of the Birth in a child's life ?
and I would like to explain it with the sas table which is in attach file ? I dont know how can I progamme it in Sas . because I would like to have 11 month and my variables are often dummies .
and I would like to know which modele use reg or logistic to show the probality of death among the children with using the variables wich i Have
I use this code
proc logistic data=user.afbr70fl;
> class b1 ;
> model b5(child is alive) =b1(month bineaire) /link=glogit ;
> run;
and i would like to try insere the other varibles ou is it better to use a proc reg ?
 the variables are 

 chid is alive 1 or 2 

 the month of Birth 1 to 12  , Current age of child  1 to 20 , Highest year of education of mom 1 to 7  , Wealth index combined  1 to 5  , 

and another variables 

2 REPLIES 2
alexgouv
Obsidian | Level 7

Is this code not working or are you just asking which proc to use? You should use proc logistic over proc reg since your response variable is categorical.

 

@farzad14000fr 

ballardw
Super User

SAS provides several procedures for survival analysis (flip side of death)

 

Procs LIFEREG, LIFETEST, ICLIFETEST, ICPHREG, QUANTLIFE, PHREG and SURVEYPHREG.

 

Which to use depends on data and assumptions involved.

 

ICLIFETEST

computes nonparametric estimates of survivor functions for interval-censored data. You can use this procedure to compare the underlying survival distributions of two or more samples of interval-censored data.

ICPHREG

fits proportional hazards regression models to interval-censored data. You can select a piecewise constant function as the baseline hazard function, or you can model the cumulative baseline hazard function by cubic splines.

LIFEREG

fits parametric models to failure time data that can be left-censored, right-censored, or interval-censored. The log of the survival time is modeled as a linear effect of covariates and a random disturbance term, the distribution of which includes the Weibull, log-normal, and log-logistic distributions.

LIFETEST

computes the Kaplan-Meier estimate of a survivor function and provides the log-rank test to compare the underlying hazards of two or more samples of right-censored data. You can also use this procedure to study the association between the failure time and a number of concomitant variables.

PHREG

fits the Cox proportional hazards model and its extensions, which include the multiplicative intensity model, the shared frailty model, and the Fine-Gray model for competing-risks data.

QUANTLIFE

performs quantile regression for survival data by modeling the quantiles of the lifetime variable as a function of the covariates. Because lifetime distributions are usually more skewed, the quantiles of the lifetime are more informative than the mean for summarizing the lifetime distribution.

SURVEYPHREG

is a Cox modeling procedure similar to PROC PHREG, appropriate for analyzing data that are collected from a survey sample.

 

The SEVERITY procedure in SAS/ETS software is also a survival analysis procedure.

 

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

Mastering the WHERE Clause in PROC SQL

SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 2 replies
  • 444 views
  • 0 likes
  • 3 in conversation