Skip to contents

Fits effects jointly on sampling SE and the network mean design (or direct comparison/outcome/time strata). Uses fitted total covariance for GLS and study-cluster CR1 covariance with G-1 t inference. The comparison-based intercept row is the sampling-SE coefficient, equivalent to an asymmetry intercept on the standardized scale. Comparison centers are estimated jointly, not treated as known offsets. Parent covariance is held fixed. More studies than fitted regression parameters are required. Cross-study covariance is unsupported. A shared asymmetry slope requires prespecified meaningful contrast directions. Effect-SE coupling can produce artefactual asymmetry for some effect measures. Fewer than ten independent studies and little SE variation are flagged in diagnostics; ten is a rule of thumb, not a reliability guarantee. Asymmetry does not establish publication bias, and nonsignificance does not exclude it.

Usage

network_bias_test(
  object,
  center = c("network", "direct"),
  comparison_adjusted = TRUE
)

Arguments

object

A fitted nma_mars object.

center

Centering method for comparison adjustment; "network" uses the fitted network mean design; "direct" uses comparison and stratum means.

comparison_adjusted

Logical; if TRUE, jointly estimate the chosen mean design with the asymmetry coefficient. Otherwise fit a common mean.

Value

A list with GLS coefficients, study-cluster CR1 covariance, G-1 degrees of freedom, sampling-SE asymmetry coefficient in intercept, fitted design/data, conditional_covariance=TRUE and interpretation diagnostics.

Examples

# \donttest{
network_bias_test(nma_fit)
#> $method
#> [1] "GLS asymmetry regression with jointly estimated means and study-cluster CR1 inference"
#> 
#> $data
#>   study treatment_1 treatment_2 comparison effect variance        se    center
#> 1    S1           A           B     A vs B   0.20     0.04 0.2000000 0.1947368
#> 2    S2           A           C     A vs C   0.35     0.05 0.2236068 0.3192982
#> 3    S3           B           C     B vs C   0.10     0.04 0.2000000 0.1245614
#> 4    S4           A           B     A vs B   0.15     0.06 0.2449490 0.1947368
#>   adjusted_effect precision
#> 1     0.005263158  5.000000
#> 2     0.030701754  4.472136
#> 3    -0.024561404  5.000000
#> 4    -0.044736842  4.082483
#> 
#> $model
#> $model$design
#>      (Intercept) d_B d_C
#> [1,]   0.2000000   1   0
#> [2,]   0.2236068   0   1
#> [3,]   0.2000000  -1   1
#> [4,]   0.2449490   1   0
#> 
#> $model$coefficients
#> [1] -0.4033571  0.2661549  0.4438783
#> 
#> $model$residuals
#> [1]  0.014516573 -0.003684934  0.002947947 -0.017352938
#> 
#> $model$covariance
#>      1    2    3    4
#> 1 0.04 0.00 0.00 0.00
#> 2 0.00 0.05 0.00 0.00
#> 3 0.00 0.00 0.04 0.00
#> 4 0.00 0.00 0.00 0.06
#> attr(,"adjustment")
#> [1] 0
#> 
#> 
#> $coefficients
#>         term   estimate std_error    t_value   p_value
#>  (Intercept) -0.4033571 0.0748565 -5.3884044 0.0125228
#>       mean_1  0.2661549 0.0083332 31.9390042   <0.0001
#>       mean_2  0.4438783 0.0193647 22.9220673 0.0001819
#> 
#> $intercept
#>         term   estimate std_error    t_value   p_value
#>  (Intercept) -0.4033571 0.0748565 -5.3884044 0.0125228
#> 
#> $vcov
#>               (Intercept)           d_B           d_C
#> (Intercept)  0.0056034962 -3.973612e-04 -0.0014080507
#> d_B         -0.0003973612  6.944261e-05  0.0001239411
#> d_C         -0.0014080507  1.239411e-04  0.0003749905
#> 
#> $df
#> [1] 3
#> 
#> $n_clusters
#> [1] 4
#> 
#> $conditional_covariance
#> [1] TRUE
#> 
#> $diagnostics
#> $diagnostics$few_studies
#> [1] TRUE
#> 
#> $diagnostics$limited_se_variation
#> [1] FALSE
#> 
#> $diagnostics$interpretation
#> [1] "Prespecify contrast direction and assess effect-measure suitability; asymmetry does not establish publication bias."
#> 
#> 
# }