get.int {nmathresh}R Documentation

Get thresholds from U matrix

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

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.


[Package nmathresh version 0.1.6 Index]