fp | R Documentation |
This function defines a fractional polynomial object for a quantitative input variable x.
fp(x, df = 4, select = NA, alpha = NA, scale=TRUE)
x |
quantitative input variable. |
df |
degrees of freedom of the FP model. df=4: FP model with maximum permitted degree m=2 (default), df=2: FP model with maximum permitted degree m=1, df=1: Linear FP model. |
select |
sets the variable selection level for the input variable. |
alpha |
sets the FP selection level for the input variable. |
scale |
use pre-transformation scaling to avoid numerical problems (default=TRUE). |
## Not run:
fp(x, df = 4, select = 0.05, scale = FALSE)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.