GENLIN
Generalized linear models (normal, binomial, Poisson, negative binomial, gamma, inverse Gaussian, Tweedie, ordinal multinomial) and generalized estimating equations.
Syntax
Section titled “Syntax”GENLIN dep [(REFERENCE=LAST|FIRST|value)] [OF trials] [BY factors] [WITH covariates] /MODEL [terms] [INTERCEPT=YES|NO] [OFFSET=var] DISTRIBUTION=dist LINK=link [/CRITERIA SCALE=MLE|DEVIANCE|PEARSON|value COVB=MODEL|ROBUST ANALYSISTYPE=3(WALD)|3(LR)|1(WALD)|1(LR) CILEVEL=95 MAXITERATIONS=100] [/REPEATED SUBJECT=var[*var] [WITHINSUBJECT=var] CORRTYPE=INDEPENDENT|EXCHANGEABLE|AR(1)|MDEPENDENT(m)|UNSTRUCTURED [COVB=ROBUST|MODEL]] [/EMMEANS TABLES=f [SCALE=ORIGINAL|TRANSFORMED] [COMPARE=f] [PADJUST=LSD|BONFERRONI|SIDAK]] [/PRINT … SOLUTION[(EXPONENTIATED)] WORKINGCORR] [/SAVE MEANPRED XBPRED RESID PEARSONRESID DEVIANCERESID].Synopsis
Section titled “Synopsis”| Kind | Procedure (reads data, produces output) |
| Body | main /SUBCOMMAND[=] … |
| Changes data | yes, undoable |
| Subcommands | /CRITERIA, /EMMEANS, /MISSING, /MODEL, /PRINT, /REPEATED, /SAVE |
| Menu | Analyze ▸ Generalized Linear Models |
| Slot: Dependent Variable | 1–1 variable(s); levels: nominal, ordinal, scale; types: numeric, string |
| Slot: Factor(s) | 0+ variable(s); levels: nominal, ordinal; types: numeric, string |
| Slot: Covariate(s) | 0+ variable(s); levels: scale; types: numeric |
Specifications
Section titled “Specifications”- MODEL: DISTRIBUTION=NORMAL BINOMIAL GAMMA IGAUSS NEGBIN(MLE|k) POISSON TWEEDIE(p) MULTINOMIAL; LINK=IDENTITY LOG LOGIT PROBIT CLOGLOG NLOGLOG LOGC POWER(a) CUMLOGIT CUMPROBIT CUMCLOGLOG CUMNLOGLOG (default: the canonical link)
- CRITERIA: SCALE=MLE is the default for normal, gamma, inverse Gaussian and Tweedie; Poisson, binomial and negative binomial fix the scale at 1
- REPEATED: fits GEE: SUBJECT identifies clusters, WITHINSUBJECT orders the observations, CORRTYPE is the working correlation; robust standard errors by default
- EMMEANS: estimated marginal means on the response scale (SCALE=ORIGINAL, delta-method standard errors) or the linear-predictor scale
Examples
Section titled “Examples”GENLIN visits BY region WITH age /MODEL region age DISTRIBUTION=POISSON LINK=LOG /PRINT SOLUTION(EXPONENTIATED).GENLIN churn (REFERENCE=FIRST) WITH tenure /MODEL tenure DISTRIBUTION=BINOMIAL LINK=LOGIT /CRITERIA ANALYSISTYPE=3(LR).GENLIN y BY trt WITH week /MODEL trt week DISTRIBUTION=NORMAL /REPEATED SUBJECT=id WITHINSUBJECT=week CORRTYPE=AR(1).- For a binary dependent the default REFERENCE=LAST models the probability of the first (lowest) category, as SPSS does.
- Ordinal models use P(Y ≤ j) = F(θj + x’β).
- GEE models report QIC and QICC instead of likelihood-based fit statistics.
Related
Section titled “Related”LOGISTIC REGRESSION, GENLINMIXED, REGRESSION
Generated from OrcStat’s command registry and reference. To suggest a change, open an issue.