Description Usage Arguments Details Value Note Author(s) References See Also Examples
Transform variance to standard deviation with all its gradient and hessian.
1 | sqrtvat(varcomp)
|
varcomp |
Is (n*1) vector of some variance, transform to √ (vc), with attributes attr(vc,"gradient"), n \times p gradient. And attr(vc,"hessian"), n \times p \ times{p} hessian. |
For computation purpose to transform variance function values to standard deviation function value is used.
Standard deviation is equal the square root of variance, with Gradient equal to:
Gradient (sdev) = \frac{1}{2} √{Var} \times Gradient (Var)
and hessian is equal
hessian(sdev) = \frac{1}{2} √{vc} \times hesian(vc) - (\frac{1}{4} σ ^ 3) grad(vc)^T \%m3d\% grad(vc)
Is used for when standard deviation of a heterogeneous variance function model is needed.
This function call by nlr
, for compatibility it is better to call from nlr
rather than directly by user.
Hossein Riazoshams, May 2014. Email: riazihosein@gmail.com URL http://www.riazoshams.com/nlr/
Riazoshams H, Midi H, and Ghilagaber G, 2018,. Robust Nonlinear Regression, with Application using R, Joh Wiley and Sons.
1 2 | ## The function is currently defined as
"sqrtvat"
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.