First order fractional polynomial

get_fp_1o(x, params, exponents, sums = NULL)

Arguments

x

A vector with the dependent variable.

params

A matrix with two columns giving the intercept and the "slope". If more than one rows given, the fractional polynomial is evaluated for each row.

sums

A function. If non-null, sums of the fractional polynomial at each x value (i.e. summaries over the different params values) are calculated.

exponent

A numerical value giving the exponent (p1) of the polynomial.

Value

A matrix with length(x) rows giving the FP values or FP summaries.