Type of Tool | SAS Macro |
SAS Utility Macro | Tool/Utility |
Title | Generalized Logistic Model |
Programmer/Email | Tzu-Chun Lin, Chin-Shang Li |
Contributing Site | Davis |
Description | The generalized logistic model is applied to study the association between an categorical outcome having more than two levels and predictor variable(s). This macro invokes LOGISTIC procedure in SAS with link 'glogit'. |
Example | Example code |
Classification Graph Type | |
References | |
Datasets | Other |
Data | |
Software Program | SAS |
Software | SAS V9.2 |
Macro Parameters | DSName: name of SAS data set Dir: directory the macro saved. Outcome: name of outcome variable with reference levels, ex: outcome(ref='Minimal'). This variable is assumed to be a categorical variable with more than two levels and the model predicts the linear relationship between outcome and a set of independent predictors. The reference level should correspond to format value if format is specified. Freq: a variable that contains the frequency of occurrence of each observation. PredictNum: list of numeric predictor variables. PredictClass: qualitative variables with reference levels, ex: sex(ref='female'). The reference levels should correspond to format values if formats are specified. Format: formats of the variables. The first is the format of the outcome variable and the rest are with the same order in PredictClass. If no format defined for the corresponding qualitattive variable, a dot (.) must be input as a place holder. OutFormat: HTML or RTF, Format of output file OutFileName: output file name |
R-Code - Attachment | |
R-Code | |
SAS-Code - Attachment | Davis_Glogit_macro.sas |
SAS-Code | |
Stata-Code - Attachment | |
Stata-Code | |
Other Code - Attachment | |
Other Code | |
Called Data Manipulation | |
Called Tool/Utility | |
Called Checking Macro | |
Called Other | |
Creation-Date | September 16, 2011 |
Revision-Date | |
Example Code | SAS Example Code |
Example Output | SAS Example Output |
SAS Examples | |
SAS_Example_Code | Davis_Glogit_example.docx |
SAS_Example_Output | Davis_Glogit_example.docx |
R Examples | |
R_Example_Code | |
R_Example_Output | |
Stats Examples | |
Special Features | |
Special Features Attached | |
Special Features Text | |
Notes1-Legend | Section with calls to needed macros |
Notes1 | |
Notes2-Legend | Macro call with fully specified parameters |
Notes2 | |
Notes3-Legend | Section with definitions of global macro parameters |
Notes3 | |
Notes4-Legend | Section with definitions of local macro variables |
Notes4 | |
See Also | |
Checklists | |
Stat Tools Disclaimer | |
Discliamer | The views expressed within CTSpedia are those of the author and must not be taken to represent policy or guidance on the behalf of any organization or institution with which the author is affiliated. |
Permission | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF ERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT OLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
Reference Image |