Learn R Programming

GLmom (version 1.3.1)

new.kpar2: Adaptively expand or prune candidate xi set

Description

Internal function that adaptively adjusts the candidate xi set by removing low-weight candidates and adding new candidates near boundary or dominant regions to improve weight coverage.

Usage

new.kpar2(
  wtgd = NULL,
  numk = NULL,
  kpar = NULL,
  remove = 0.004,
  dist = 0.02,
  tre1 = 0.01,
  tre8 = 0.5
)

Value

A list containing:

kpar2

Updated candidate xi values

aw

Adjustment indicator (0 = no change needed)

numk

Updated number of candidates

Arguments

wtgd

Numeric vector of current weights.

numk

Number of candidate submodels.

kpar

Numeric vector of candidate xi values.

remove

Threshold below which candidates are removed. Default is 0.004.

dist

Spacing for new candidates. Default is 0.02.

tre1

Lower threshold for boundary detection. Default is 0.01.

tre8

Upper threshold for dominant candidate. Default is 0.5.