Log-linear (exponential) time-course function
tloglin.Rd
\(rate\times{log(x + 1)}\)
Arguments
- pool.rate
Pooling for rate parameter. Can take
"rel"
or"abs"
(see details).- method.rate
Method for synthesis of rate parameter. Can take
"common
,"random"
, or be assigned a numeric value (see details).
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 Lu and Ades (2004) . |
"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. |
References
Lu G, Ades AE (2004). “Combination of direct and indirect evidence in mixed treatment comparisons.” Stat Med, 23(20), 3105-24. ISSN 0277-6715 (Print) 0277-6715 (Linking), doi:10.1002/sim.1875 , https://pubmed.ncbi.nlm.nih.gov/15449338/.
Examples
tloglin(pool.rate="rel", method.rate="random")
#> $name
#> [1] "loglin"
#>
#> $fun
#> ~rate * log(time + 1)
#> <environment: 0x557014aa9c60>
#>
#> $f
#> function (time, beta.1)
#> {
#> y <- beta.1 * log(time + 1)
#> return(y)
#> }
#> <bytecode: 0x5570029911c0>
#> <environment: 0x557014aa9c60>
#>
#> $latex
#> [1] "\beta_1 * log(x_m + 1)"
#>
#> $params
#> [1] "rate"
#>
#> $nparam
#> [1] 1
#>
#> $jags
#> [1] "beta.1[i,k] * log(time[i,m] + 1)"
#>
#> $apool
#> rate
#> "rel"
#>
#> $amethod
#> rate
#> "random"
#>
#> $bname
#> rate
#> "beta.1"
#>
#> $bpool
#> rate
#> "pool.1"
#>
#> $bmethod
#> rate
#> "method.1"
#>
#> attr(,"class")
#> [1] "timefun"
tloglin(pool.rate="abs")
#> $name
#> [1] "loglin"
#>
#> $fun
#> ~rate * log(time + 1)
#> <environment: 0x557009bbbd10>
#>
#> $f
#> function (time, beta.1)
#> {
#> y <- beta.1 * log(time + 1)
#> return(y)
#> }
#> <bytecode: 0x5570029911c0>
#> <environment: 0x557009bbbd10>
#>
#> $latex
#> [1] "\beta_1 * log(x_m + 1)"
#>
#> $params
#> [1] "rate"
#>
#> $nparam
#> [1] 1
#>
#> $jags
#> [1] "beta.1 * log(time[i,m] + 1)"
#>
#> $apool
#> rate
#> "abs"
#>
#> $amethod
#> rate
#> "common"
#>
#> $bname
#> rate
#> "beta.1"
#>
#> $bpool
#> rate
#> "pool.1"
#>
#> $bmethod
#> rate
#> "method.1"
#>
#> attr(,"class")
#> [1] "timefun"