Return to Stat Tools Home

Title: Generalized Linear Regression for Count Data

Evaluate this tool by clicking on the stars:

%VOTE{id="EvalStatTools" stars1="Tools Overall Rating" stars2="Code Works Well" stars3="Good Instructions" global="off" open="off" secret="off" format="| $key | $small
Score: $score, My vote: $mylast, Total votes: $sum |" }%

Add Comments and then click on "Add comment" button

Please note any errors found in the macros.

%COMMENT%

StatToolsForm edit

Type of Tool SAS Macro
Title Generalized Linear Regression for Count Data
Programmer/Email RuiChen
Contributing Site Rochester
Description This is a macro for performing Poisson regression for count data. The macro will automatically check for overdipersion based on the scale parameter. If the estimated scale parameter (computed either by deviance or by Pearson chi-square, whichever is bigger) is larger than the cutpoint (specified by users), alternative model (such as Sandwich variance estimate using GEE or negative binomial regression) is also provided.
Classification Graph Type
References
Datasets
Data
Software Program SAS
Software SAS
Macro Parameters DSName: Name of SAS data set.
Dir: Directory where the output file is saved. If it is unspecified, the output file is saved under C:\ (Windows) or Home directory (Linux).
ID: Name of the variable for object ID.
Outcome: Name of outcome variable.
PredictNum: Name of the continuous covariates.
PredictClass: Name of the categorical covariates. The reference could be specified using SAS syntax. For example, gender(ref="female") is allowed. Make sure there is no space between the variable name and reference specification. For example, gender (ref="female") is NOT acceptable.
Format: Formats of tshe variables with with the same order in PredictClass. if no format defined for the corresponding qualitattive variable, a dot (.) must be input as a place holder.
ScaleCutpoint: Cutpoint for the scale parameter to be considered overdispersion
AlternateMod: Alternative model is overdispersion is detected
-GEE: Sandwich variance-covariance estimate.
-NB: Negative binomial regression.
-ZIP: Zero Inflated Poisson regression.
OutForm: Format of output file. HTML or RTF.
R-Code - Attachment
R-Code
SAS-Code - Attachment Rochester_Count Reg_Main Macro
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
Revision-Date July 15, 2010
Example Code SAS Example Code
Example Output SAS Example Output
SAS Examples
SAS_Example_Code Rochester_Count Reg_ SAS Example Code
SAS_Example_Output Rochester_Count Reg_SAS Example Output
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 UCSF_Logistic Regression

Rochester_Linear Regression
Checklists
Stat Tools Disclaimer This SAS macro is developed by Rui Chen and other members in the Department of Biostatistics and Computational Biology at the University of Rochester under the auspice of the CTSI BERD with the intent to facilitate data analyses and reporting in clinical and related research. It is copyrighted by Dr. Chen, July, 2009 and distributed for free public access.
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
This topic: CTSpedia > WebHome > StatToolsHome > StatToolsTopic005
Topic revision: 06 Apr 2012, MaryBanach
This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Foswiki? Send feedback