Logistic Procedure


The LOGISTIC procedure fits linear logistic regression models for discrete response data by the method of maximum likelihood. The logistic regression usually used for binary responses. The LOGISTIC procedure enables to specify categorical variables (In the below example it is var1) or continuous variables as explanatory variables.


ods listing close;
proc logistic data=data ;

/*var1 is the one categorical variable*/

class var1 (ref = 'Group1') / param = ref;

/*Here var1, var2 and var3 are the three independent variables and we also fix the
Level of significance*/
model dependent = var1 var2 var3 / rsquare alpha = .10;
/*Outputting the required outputs into a SAS dataset*/
ods output OddsRatios=or (where = (Effect eq "var1 Group2 vs. Group1"));
ods output ParameterEstimates =param;
ods listing;
You may also like:
All you need to know about Systematic Literature Review!

Systematic Literature Review (SLR) – Tips & Tricks   Authors: Kapil Khambholja Ph.D.  & MW- RWE team, Genpro research   What is SLR? In simple terms a Systematic Literature Review (SLR) is a study of studies. It attempts to collect comprehensive existing evidence on a...

Read More
The Mean sometimes can be very mean!

The Mean sometimes can be very mean!   Author: Akhilesh Krishnan, SAS Programmer, Genpro Research   The arithmetic mean, commonly called an average, is a very popular measure of the central value. It is the tool that describes a dataset, which allows for comparison. The...

Read More
Personalized Medicines in Clinical Trial

Personalized Medicines in Clinical Trial   Author: Diyo Thomas, Statistical Programmer at Genpro Research Personalized medicine, stratified medicine, precision medicine, and P4 medicine are some terms that we often hear these days. With the advent of these concepts wherein the interventions can now be catered to...

Read More
Our Products