Package: mfp2 1.0.2

Edwin Kipruto
mfp2: Multivariable Fractional Polynomial Models with Extensions
Multivariable fractional polynomial algorithm simultaneously selects variables and functional forms in both generalized linear models and Cox proportional hazard models. Key references are Royston and Altman (1994) <doi:10.2307/2986270> and Royston and Sauerbrei (2008, ISBN:978-0-470-02842-1). In addition, the implementation can model semi-continuous covariates with a “spike at zero” using a two-stage selection procedure. This extension follows the framework proposed by Becher et al. (2012) <doi:10.1002/bimj.201100263>. The package also includes the approximate cumulative distribution (ACD) transformation to model a sigmoid relationship between variable x and an outcome variable y, as described in Royston (2014) <doi:10.1177/1536867X1401400206> and Royston and Sauerbrei (2016) <doi:10.1177/1536867X1601600>. This feature distinguishes it from a standard fractional polynomial function, which lacks the ability to achieve such modeling.
Authors:
mfp2_1.0.2.tar.gz
mfp2_1.0.2.zip(r-4.7)mfp2_1.0.2.zip(r-4.6)mfp2_1.0.2.zip(r-4.5)
mfp2_1.0.2.tgz(r-4.6-any)mfp2_1.0.2.tgz(r-4.5-any)
mfp2_1.0.2.tar.gz(r-4.7-any)mfp2_1.0.2.tar.gz(r-4.6-any)
mfp2_1.0.2.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
mfp2/json (API)
| # Install 'mfp2' in R: |
| install.packages('mfp2', repos = c('https://edwinkipruto.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/edwinkipruto/mfp2/issues
Last updated from:1bf3e78b3c. Checks:9 OK. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel-x86_64 | OK | 168 | ||
| source / vignettes | OK | 199 | ||
| linux-release-x86_64 | OK | 165 | ||
| macos-release-arm64 | OK | 211 | ||
| macos-oldrel-arm64 | OK | 225 | ||
| windows-devel | OK | 130 | ||
| windows-release | OK | 115 | ||
| windows-oldrel | OK | 138 | ||
| wasm-release | OK | 114 |
Exports:apply_shift_scaleassign_dfcenter_matrixcontr.cumulativecreate_dummy_variablesfind_scale_factorfind_shift_factorfit_acdfpfp2fracplotgenerate_powers_acdgenerate_powers_fpget_selected_variable_namesmfp2transform_matrixtransform_vector_acdtransform_vector_fp
Dependencies:clicpp11farverggplot2gluegtableisobandlabelinglatticelifecycleMatrixR6RColorBrewerrlangS7scalessurvivalvctrsviridisLitewithr
Last update: 2026-02-18
Started: 2026-02-18
Last update: 2025-10-10
Started: 2023-06-16