transformNR: Transform nonlinear regression model

Description Usage Arguments Details Value Note Author(s) References See Also Examples

View source: R/transformNR.R

Description

Transform both side a nonlinear regression model by cholesky decomposition of covariance matrix of errors. The new transformed model has constant variance and uncorrelated errors.

Usage

1
transformNR(value, rm)

Arguments

value

Numeric value with (n by p) "gradient" and (three dimentional n by p by p) "hessian" attributes. Usually it is right side (predictors) or left side (response) of a nonlinear regression model.

rm

Matrix for transforming. In nonlinear regression if covaraince matrix of error represent by σ ^2 V, rm is cholesky decompostion of V.

Details

If errors of a nonlinear regression is Autocorrelated or heteroscedastic, the model can be transformed to uncorrelated and homoscedastic using cholesky decomposition.

Value

Transformed values including (n by p) "gradient" and (three dimentional n by p by p) "hessian" attributes.

Note

For transfering a nonlinear regression model both side should be transformed. In nlr package generalized nonlinear model use this transformation.

This function call by nlr, for compatibility it is better to call from nlr rather than directly by user.

Author(s)

Hossein Riazoshams, May 2014. Email: riazihosein@gmail.com URL http://www.riazoshams.com/nlr/

References

Riazoshams H, Midi H, and Ghilagaber G, 2018,. Robust Nonlinear Regression, with Application using R, Joh Wiley and Sons.

Seber, G., A. F. and Wild, C. J. (2003). Nonlinear Regression. New York: John Wiley & Sons, Inc.

See Also

transforminv

Examples

1
2
3
4
5
6
##---- Should be DIRECTLY executable !! ----
##-- ==>  Define data, use random,
##--	or do  help(data=index)  for the standard data sets.

## The function is currently defined as
"transformNR"

nlr documentation built on July 31, 2019, 5:09 p.m.

Related to transformNR in nlr...