trim.cwm: trim.cwm: main function

View source: R/CWM.short.R

trim.cwmR Documentation

trim.cwm: main function

Description

main function adapted from the original developer of CWM method.

Usage

trim.cwm(
  X,
  Y,
  K,
  niter = 20,
  Ksteps = 10,
  maxfactx = 5,
  maxfacty = 5,
  zero.tol = 1e-16,
  zero.tol1 = 1e-16,
  zero.tol2 = 1e-90,
  trace = 0,
  alpha = 0.1,
  init = 5
)

Arguments

X

independent variables.

Y

response variable.

K

number of clusters.

niter

see original CWM method.

Ksteps

see original CWM method

maxfactx

see original CWM method

maxfacty

see original CWM method

zero.tol

see original CWM method

zero.tol1

see original CWM method

zero.tol2

see original CWM method

trace

see original CWM method

alpha

see original CWM method

init

number of initializations

Value

an RobMixReg object.


changwn/RMR documentation built on March 29, 2025, 3:15 p.m.