Scoring Methodology for Ordered Factors

Starting from a given object representing a fitted model (within a certain set of model classes) whose (non-)linear predictor includes some ordered factor(s) among the explanatory variables, a new model is constructed and fitted where each named factor is replaced by a single numeric score, suitably chosen so that the new variable produces a fit comparable with the standard methodology based on a set of polynomial contrasts. Two variants of the present approach have been developed, one in each of the next references: Azzalini (2023) , (2024) .


Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("smof")

1.2.2 by Adelchi Azzalini, 2 years ago


Browse source code at https://github.com/cran/smof


Authors: Adelchi Azzalini [aut, cre]


Documentation:   PDF Manual  


GPL-2 | GPL-3 license


Imports stats, methods

Suggests ggplot2, survival, nloptr


See at CRAN