Impacts {CoDaImpact}R Documentation

Computation of elasticities in CoDa regression models

Description

This function computes elasticities and semi-elasticities for CoDa regression model. where we have to distinguish four cases:

Usage

Impacts(object, Xvar = NULL, obs = 1)

Arguments

object

an object of class "lmCoDa"

Xvar

a character indicating the name of one explanatory variable

obs

a numeric that refers to the indicator of one observation

Details

The mathematical foundation for elasticity computations in CoDa model come from Morais and Thomas-Agnan (2021). Dargel and Thomas-Agnan (2024) present further results and illustrations.

Value

a matrix

Author(s)

References

Examples

res <- lmCoDa(YIELD ~ PRECIPITATION + ilr(TEMPERATURES), data = head(rice_yields,20))
Impacts(res, Xvar = "TEMPERATURES")


[Package CoDaImpact version 0.1.0 Index]