fn.Weights: Wrapper for Stage1 function with retry logic

View source: R/stage-1-functions.R

fn.WeightsR Documentation

Wrapper for Stage1 function with retry logic

Description

Wrapper for Stage1 function with retry logic

Usage

fn.Weights(
  data,
  method,
  flexorFlag,
  num.random,
  naturalGroupProp,
  gammaMin,
  gammaMax,
  verbose,
  nodesize = NULL,
  fold_ids = NULL
)

Arguments

data

Structured data list

method

Character string: "IC", "IGO", or "FLEXOR"

flexorFlag

Logical indicating if FLEXOR is selected

num.random

Number of random starting points for FLEXOR

naturalGroupProp

Probability vector theta for FLEXOR

gammaMin

Lower bound for gamma (FLEXOR only)

gammaMax

Upper bound for gamma (FLEXOR only)

verbose

Logical; if TRUE, display progress messages

nodesize

Integer min.node.size for ranger, or NULL to tune

fold_ids

Integer vector of fold assignments (length N), or NULL. Passed through to fn.RF_ZFirst; see there for details.

Value

List with return.parm and percentESS, or NULL if all attempts fail


WMAP documentation built on Oct. 6, 2026, 1:07 a.m.