Description Usage Arguments Details Value Author(s) References See Also Examples
Two-order fractional polynomials transformation for continuous covariates.
1 |
x |
a numeric vector. |
p |
a vector of length 2 with the powers of x to be included. |
shift |
optional scalar representing the shift, if |
scale |
optional scalar representing the scale, if |
scaling |
a logical indicating if the measurements are scaled prior to model fitting. |
The fracpol
is based on the FP
function in the mboost
package.
See help(FP)
for more details.
A matrix including the trasformations corresponding to the input values.
Alessio Crippa, alessio.crippa@ki.se
Royston, Patrick, and Douglas G. Altman. "Regression using fractional polynomials of continuous covariates: parsimonious parametric modelling." Applied Statistics (1994): 429-467.
1 2 3 4 5 6 7 8 9 10 | ## Load data and run the model
data("alcohol_cvd")
with(alcohol_cvd, fracpol(dose, p = c(.5, .5)))
model <- dosresmeta(formula = logrr ~ fracpol(dose, p = c(.5, .5)), type = type, id = id,
se = se, cases = cases, n = n, data = alcohol_cvd)
## Test for significance of the overall dose-response association
waldtest(b = coef(model), Sigma = vcov(model), Terms = 1:nrow(vcov(model)))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.