Contents
Can you use ordinal predictors in a GLM?
However, when it comes to including ordinal variables as predictors in a GLM (or GzLM), the choices are slim. In nearly all cases, ordinal predictors are treated as either nominal (unordered) or continuous variables in regression models, which can lead to convoluted and possibly misleading results.
How to test for linear, quadratic and cubic trends?
One approach is to write CONTRAST statements using orthogonal polynomial coefficients. The following statements test for linear, quadratic, and cubic trends when doses are equally spaced with 4 levels.
Which is the correct interpretation of.l, Q, C?
The first is linear (.L), the second is quadratic (.Q), the third is cubic (.C), and so on. R will fit one fewer polynomial functions than the number of available levels.
How do I deal with ordinal predictors in the context of?
How do I deal with ordinal predictors in the context of multiple linear regression that will be reduced to a minimal adequate model? Traditionally in linear regression your predictors must either be continuous or binary. Ordinal variables are often inserted using a dummy coding scheme.
When to use GLM for generalized linear models?
glm is used to fit generalized linear models, specified by giving a symbolic description of the linear predictor and a description of the error distribution.
Can a ordinal predictor be used in a regression?
Many applied studies collect one or more ordered categorical predictors, which do not fit neatly within classic regression frameworks. In most cases, ordinal predictors are treated as either nominal (unordered) variables or metric (continuous) variables in regression models, which is theoretically and/or computationally undesirable.
Can a GLM summary omit a LM summary?
The glm summary may omit some types of lm summary values that are not properly provided by these generalized models, but it does provide the AIC value that is appropriate for models fit by the maximum-likelihood approach that glm uses. Third, you need to be aware of an important distinction between different meanings of “goodness-of-fit.”