Predictions, fitted values, residuals, and coefficients in CoDa models
Source:R/class-lmCoDa.R
residuals.lmCoDa.Rd
These functions work as in the usual lm object.
They additionally offer the possibility use the space
argument
which transforms them into directly into clr space or in the simplex.
Usage
# S3 method for lmCoDa
residuals(object, space = NULL, ...)
Arguments
- object
class "lmCoDa"
- space
a character indicating in which space the prediction should be returned. Supported are the options
c("clr", "simplex")
.- ...
passed on to
predict.lm()