optim_weights {OptimModel} | R Documentation |
Weight functions for optim_fit
Description
Weight functions for optim_fit
. May be used when fit.method=="irwls"
or fit.method=="mle"
. Generally, not called by the user.
Usage
weights_varIdent(phi, mu)
weights_varExp(phi, mu)
weights_varPower(phi, mu)
weights_varConstPower(phi, mu)
weights_tukey_bw(phi = 4.685, resid)
weights_huber(phi=1.345, resid)
Arguments
phi |
Variance parameter(s) |
mu |
Vector of means |
resid |
Vector of model residuals |
Details
-
weights_varIdent
returns a vector of ones. -
weights_varExp
returns -
weights_varPower
returns -
weights_varConstPower
returnswhere
[i]
-
weights_tukey_bw
is a Tukey bi-weight function. LetThen this function returns
For this the user should use
phi.fixed=TRUE
in theoptim_fit
function. weights_huber
is a Huber weighting function that returns, where
and
. For this the user should use
phi.fixed = TRUE
in theoptim_fit
function.
Value
A vector of numeric weights.
Author(s)
Steven Novick
See Also
[Package OptimModel version 2.0-1 Index]