Learn R Programming

CoDaImpact (version 0.1.0)

fitted.lmCoDa: Predictions, fitted values, residuals, and coefficients in CoDa models

Description

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
fitted(object, space = NULL, ...)

Value

matrix or vector

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()

Author

Lukas Dargel