tpoly: Polynomial time-course function

View source: R/time.functions.R

tpolyR Documentation

Polynomial time-course function

Description

Polynomial time-course function

Usage

tpoly(
  degree = 1,
  pool.1 = "rel",
  method.1 = "common",
  pool.2 = "rel",
  method.2 = "common",
  pool.3 = "rel",
  method.3 = "common",
  pool.4 = "rel",
  method.4 = "common"
)

Arguments

degree

The degree of the polynomial - e.g. degree=1 for linear, degree=2 for quadratic, degree=3 for cubic.

pool.1

Pooling for the 1st polynomial coefficient. Can take "rel" or "abs" (see details).

method.1

Method for synthesis of the 1st polynomial coefficient.Can take ⁠"common⁠, "random", or be assigned a numeric value (see details).

pool.2

Pooling for the 2nd polynomial coefficient. Can take "rel" or "abs" (see details).

method.2

Method for synthesis of the 2nd polynomial coefficient. Can take ⁠"common⁠, "random", or be assigned a numeric value (see details).

pool.3

Pooling for the 3rd polynomial coefficient. Can take "rel" or "abs" (see details).

method.3

Method for synthesis of the 3rd polynomial coefficient. Can take ⁠"common⁠, "random", or be assigned a numeric value (see details).

pool.4

Pooling for the 4th polynomial coefficient. Can take "rel" or "abs" (see details).

method.4

Method for synthesis of the 4th polynomial coefficient. Can take ⁠"common⁠, "random", or be assigned a numeric value (see details).

Details

  • \beta_1 represents the 1st coefficient.

  • \beta_2 represents the 2nd coefficient.

  • \beta_3 represents the 3rd coefficient.

  • \beta_4 represents the 4th coefficient.

Linear model:

\beta_1{x}

Quadratic model:

\beta_1{x} + \beta_2{x^2}

Cubic model:

\beta_1{x} + \beta_2{x^2} + \beta_3{x^3}

Quartic model:

\beta_1{x} + \beta_2{x^2} + \beta_3{x^3} + \beta_4{x^4}

Value

An object of class("timefun")

Time-course parameters

Time-course parameters in the model must be specified using a pool and a method prefix.

pool is used to define the approach used for pooling of a given time-course parameter and can take any of:

Argument Model specification
"rel" Indicates that relative effects should be pooled for this time-course parameter. Relative effects preserve randomisation within included studies, are likely to vary less between studies (only due to effect modification), and allow for testing of consistency between direct and indirect evidence. Pooling follows the general approach for Network Meta-Analysis proposed by \insertCitelu2004;textualMBNMAtime.
"abs" Indicates that study arms should be pooled across the whole network for this time-course parameter independently of assigned treatment to estimate an absolute effect. This implies estimating a single value across the network for this time-course parameter, and may therefore be making strong assumptions of similarity.

method is used to define the model used for meta-analysis for a given time-course parameter and can take any of the following values:

Argument Model specification
"common" Implies that all studies estimate the same true effect (often called a "fixed effect" meta-analysis)
"random" Implies that all studies estimate a separate true effect, but that each of these true effects vary randomly around a true mean effect. This approach allows for modelling of between-study heterogeneity.
numeric() Assigned a numeric value, indicating that this time-course parameter should not be estimated from the data but should be assigned the numeric value determined by the user. This can be useful for fixing specific time-course parameters (e.g. Hill parameters in Emax functions, power parameters in fractional polynomials) to a single value.

When relative effects are modelled on more than one time-course parameter, correlation between them is automatically estimated using a vague inverse-Wishart prior. This prior can be made slightly more informative by specifying the scale matrix omega and by changing the degrees of freedom of the inverse-Wishart prior using the priors argument in mb.run().

References

\insertAllCited

Examples

# Linear model with random effects
tpoly(pool.1="rel", method.1="random")

# Quadratic model with a single absolute parameter estimated for the 2nd coefficient
tpoly(pool.1="rel", method.1="common", pool.2="abs", method.2="random")


MBNMAtime documentation built on Oct. 14, 2023, 5:08 p.m.