1. Home
2. General Linear Regression

General Linear Regression

Select menu: Stats | Regression Analysis | Linear Models

The General linear regression downdown list option lets you fit a general regression model.

Response variate

Specifies the name of the response (or y-) variate.

Maximal model

Maximal Model lets you specify the most complicated model that you are likely to want to consider. It may be left blank, but this may lead to subsequent inability to compare models because of data that are missing for some explanatory variates but not for others.

Model to be fitted

Specifies the model to be fitted by entering a model formula. The formula can involve both variates and factors which can be selected from the Available data list, and operators from the Operators list. A variate in the formula represents its linear effect, and a factor represents its main effect: that is, a separate intercept for each level of the factor. An interaction between factors allows separate intercepts for each combination of levels of the factors. An interaction between a variate and a factor represents separate slopes for each level. You can also include interactions between variates, representing the linear effect of the product of the two variates, and interactions between any number up to nine variates and factors.

There are functions available in the Operators list that provide more general effects of variates than simply the linear effect. The POL() function represents polynomial effects up to the order given in the second argument (maximum 4); so POL(x; 3) represents a cubic effect of the variate x. The REG() function represents orthogonal polynomials (maximum order 8). The COMP() function can be used to estimate comparisons. The S() function represents nonparametric effects, fitted by cubic smoothing splines, with the number of degrees of freedom specified; so S(x; 4) represents a smoothed effect of x with 4 d.f. (also called an additive effect of x). The POL, REG COMP and S functions may appear in interactions with factors. For the S function, the linear effect of the variate is estimated separately for each level together with a single smoothed effect for all levels.

Contrasts

Lets you construct contrasts. This opens a dialog that lets you choose between different types of contrasts to use in the analysis.

Change model

After fitting the model you can investigate other models by using Change model to add or drop terms. If you specified a maximal model, all new terms must have appeared in that model. If you did not specify a maximal model and a term is introduced with a missing value for a unit previously used in the regression, the model sequence is interrupted and information will be available only for the current model (excluding that unit) and the new model. In command mode, you can also use STEP for stepwise regression.
{"found_math": false, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 0, "mathjax_display_tex": 0, "mathjax_asciimath": 0, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "url": "https://genstat.kb.vsni.co.uk/knowledge-base/general-linear-regression/", "fetch_time": 1723393644000000000, "content_mime_type": "text/html", "warc_filename": "crawl-data/CC-MAIN-2024-33/segments/1722641002566.67/warc/CC-MAIN-20240811141716-20240811171716-00046.warc.gz", "warc_record_offset": 219941622, "warc_record_length": 11339, "token_count": 571, "char_count": 2876, "score": 3.671875, "int_score": 4, "crawl": "CC-MAIN-2024-33", "snapshot_type": "latest", "language": "en", "language_score": 0.8948373794555664, "file_path": "/sailhome/yjruan/project/latent-lm/data/processed/finemath-4plus/finemath-4plus/train-00062-of-00064.parquet"}