Skip to contents

Uses internal and external weights as well as internal and external exponents or factors for these weights to construct penalty factors.

Usage

construct_penfacs(w_int, w_ext, v_int, v_ext, type)

Arguments

w_int

internal weights: numeric vector of length p with non-negative entries

w_ext

external weights: numeric vector of length p with non-negative entries

v_int

exponent or factor for internal weights: non-negative scalar

v_ext

exponent or factor for external weights: non-negative scalar

type

scaling of weights: character "exp", "ari", "geo", or "rem" (with or without addition of ".con"), default: "exp"

Value

Returns a vector of length q (non-negative entries).

Details

While internal weights are from the problem of interest ("supported" problem), external weights are from the other problems ("supporting" problems).

Multiple options exist for scaling prior weights:

  • "exp": wintvint+wextvext

  • "ari": vintwint+vextwext

  • "geo": wintvintwextvext

  • "rem": wintvint+wextvextI(vint=0)I(vext=0))

The constrained versions "exp.con", "ari.con", "geo.con", and "rem.con" impose vint+vext=1. The penalty factors are the inverse weights. Suggested choices are "exp" for predictivity and "ari.con" for interpretability.

See also

Use construct_weights to obtain w_int and w_ext.

Examples

n <- 10
w_int <- stats::runif(n)
w_ext <- stats::runif(n)
construct_penfacs(w_int,w_ext,v_int=0.5,v_ext=0.5,type="exp")
#>  [1] 0.7102065 0.7760143 0.6372535 0.6574816 0.7248686 0.8362442 1.3957089
#>  [8] 0.8944889 2.5387317 0.5484308