Learn R Programming

dosresmeta (version 2.0.1)

fpgrid: Grid with combinations of p for two-order fractional polynomials

Description

Computes the different combinations of p usefull for evaluating two-order fractional polynomials.

Usage

fpgrid(p = c(-2, -1, -0.5, 0, 0.5, 1, 2, 3))

Value

A data.frame with the different combinations of p.

Arguments

p

a numeric vector with the coefficient to be combined.

Author

Alessio Crippa, alessio.crippa@ki.se

References

Royston, Patrick, and Douglas G. Altman. "Regression using fractional polynomials of continuous covariates: parsimonious parametric modelling." Applied Statistics (1994): 429-467.

Examples

Run this code

grd <- fpgrid()
head(grd)

Run the code above in your browser using DataLab