get.int: Get thresholds from U matrix

Description Usage Arguments Value

View source: R/nma_thresh.R

Description

Return the positive and negative thresholds for an observation, given a vector of possible threshold solutions. This function is intended for internal use, and is called by nma_thresh automatically.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
get.int(
  x,
  kstar,
  trt.code,
  contrs,
  mcid = FALSE,
  mean.dk = NULL,
  inflmat = NULL,
  opt.max = NULL
)

Arguments

x

Column of U matrix, containing all possible threshold solutions for a data point.

kstar

Base-case optimal treatment.

trt.code

Vector of (possibly recoded) treatments. See nma_thresh parameter of the same name.

contrs

Details of contrasts corresponding to rows in x, as rows of the data.frame output by d_i2ab.

mcid

Use MCID decision rule? Default FALSE.

mean.dk

Posterior means of basic treatment parameters, required when mcid is TRUE.

inflmat

Column of influence matrix H for the data point, required when mcid is TRUE.

opt.max

Is the maximum treatment effect optimal? See nma_thresh parameter of same name. Required when mcid is TRUE.

Value

Data frame of thresholds and new optimal treatments with columns lo, lo.newkstar, hi, and hi.newkstar.


nmathresh documentation built on July 8, 2020, 5:17 p.m.