Skip to content

CSGLM

Linear regression and ANOVA for a complex sample with design-based standard errors.

CSGLM dep [BY factors] [WITH covariates] /PLAN FILE='file.csaplan' [/MODEL effects] [/INTERCEPT INCLUDE=YES|NO]
[/CRITERIA CILEVEL=95] [/TEST TYPE=F|ADJF|CHISQUARE|ADJCHISQUARE] [/DOMAIN VARIABLE=var(value)] [/MISSING …] [/SAVE PRED RESID].
Kind Procedure (reads data, produces output)
Body main /SUBCOMMAND[=] …
Changes data yes, undoable
Subcommands /CRITERIA, /DOMAIN, /INTERCEPT, /MISSING, /MODEL, /PLAN, /PRINT, /SAVE, /STATISTICS, /TEST
Menu Analyze ▸ Complex Samples
Slot: Dependent Variable 1–1 variable(s); levels: scale; types: numeric
Slot: Factors 0+ variable(s); levels: nominal, ordinal, scale; types: numeric, string
Slot: Covariates 0+ variable(s); levels: nominal, ordinal, scale; types: numeric
  • PLAN: FILE=‘file.csaplan’, the analysis plan (required)
  • MODEL: effects, e.g. a b a*b x (default: main effects of every factor and covariate)
  • INTERCEPT: INCLUDE=YES (default) or NO
  • CRITERIA: CILEVEL=95, the confidence level
  • TEST: TYPE=F (default), ADJF, CHISQUARE or ADJCHISQUARE for the tests of model effects
  • DOMAIN: VARIABLE=var(value) fits the model to one subpopulation while keeping the full design
  • MISSING: CLASSMISSING=EXCLUDE (default) or INCLUDE for user-missing factor values
  • SAVE: PRED and RESID save predicted values and residuals
CSGLM score BY sex WITH years /PLAN FILE='survey.csaplan' /TEST TYPE=ADJF.
  • The analysis plan (CSPLAN ANALYSIS or CSSELECT /ANALYSISPLAN) supplies the weight, strata, clusters and finite population correction. Variances are Taylor-series linearization estimates; tests and intervals use the design degrees of freedom (first-stage units − strata). WEIGHT BY is ignored.
  • Factors use indicator coding with the last category as reference.

CSLOGISTIC, UNIANOVA, REGRESSION


Generated from OrcStat’s command registry and reference. To suggest a change, open an issue.