Description Usage Arguments Details Value Author(s) References See Also Examples
Provides fractional polynomials as accessible function.
1 |
z |
a scalar or vector of positive numerical values. |
a |
first power. |
b |
optional second power. |
The function returns fp(a
) of z
(and optionally fp(b)
of z
).
A matrix with one or two columns (if a second power b
was specified), and number of
rows equal to the length of z
. The columns are sorted by descending power.
Georg Heinze
Royston P and Altman D (1994). Regression Using Fractional Polynomials of Continuous Covariates: Parsimonious Parametric Modelling. J R STAT SOC C-APPL 43, 429-467.
Royston P and Sauerbrei W (2008). Multivariable Model-Building. A Pragmatic Approach to Regression Analysis Based on Fractional Polynomials for Modelling Continuous Variables. Wiley, Chichester, UK.
1 2 3 4 |
Loading required package: survival
fp(1)
1 1
4 4
6 6
fp(0.5)
1 1.00000
4 2.00000
6 2.44949
fp(0.5) fp(R0.5)
1 1.00000 0.000000
4 2.00000 2.772589
6 2.44949 4.388896
fp(2) fp(0)
1 1 0.000000
4 16 1.386294
6 36 1.791759
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.