From 3eefecf0adfbb30b8fb895c244dea6903bcb3e9c Mon Sep 17 00:00:00 2001 From: Johannes Ranke Date: Thu, 31 Jan 2019 16:55:20 +0100 Subject: Restore NAMESPACE which was accidentally overwritten by pkgdown -> roxygen --- docs/reference/ilr.html | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'docs/reference/ilr.html') diff --git a/docs/reference/ilr.html b/docs/reference/ilr.html index b75a9a91..760dd3aa 100644 --- a/docs/reference/ilr.html +++ b/docs/reference/ilr.html @@ -158,14 +158,15 @@

Examples

# Order matters -ilr(c(0.1, 1, 10))
#> Error in ilr(c(0.1, 1, 10)): konnte Funktion "ilr" nicht finden
ilr(c(10, 1, 0.1))
#> Error in ilr(c(10, 1, 0.1)): konnte Funktion "ilr" nicht finden
# Equal entries give ilr transformations with zeros as elements -ilr(c(3, 3, 3))
#> Error in ilr(c(3, 3, 3)): konnte Funktion "ilr" nicht finden
# Almost equal entries give small numbers -ilr(c(0.3, 0.4, 0.3))
#> Error in ilr(c(0.3, 0.4, 0.3)): konnte Funktion "ilr" nicht finden
# Only the ratio between the numbers counts, not their sum -invilr(ilr(c(0.7, 0.29, 0.01)))
#> Error in invilr(ilr(c(0.7, 0.29, 0.01))): konnte Funktion "invilr" nicht finden
invilr(ilr(2.1 * c(0.7, 0.29, 0.01)))
#> Error in invilr(ilr(2.1 * c(0.7, 0.29, 0.01))): konnte Funktion "invilr" nicht finden
# Inverse transformation of larger numbers gives unequal elements -invilr(-10)
#> Error in invilr(-10): konnte Funktion "invilr" nicht finden
invilr(c(-10, 0))
#> Error in invilr(c(-10, 0)): konnte Funktion "invilr" nicht finden
# The sum of the elements of the inverse ilr is 1 -sum(invilr(c(-10, 0)))
#> Error in invilr(c(-10, 0)): konnte Funktion "invilr" nicht finden
# This is why we do not need all elements of the inverse transformation to go back: +ilr(c(0.1, 1, 10))
#> [1] -1.628174 -2.820079
ilr(c(10, 1, 0.1))
#> [1] 1.628174 2.820079
# Equal entries give ilr transformations with zeros as elements +ilr(c(3, 3, 3))
#> [1] 0 0
# Almost equal entries give small numbers +ilr(c(0.3, 0.4, 0.3))
#> [1] -0.2034219 0.1174457
# Only the ratio between the numbers counts, not their sum +invilr(ilr(c(0.7, 0.29, 0.01)))
#> [1] 0.70 0.29 0.01
invilr(ilr(2.1 * c(0.7, 0.29, 0.01)))
#> [1] 0.70 0.29 0.01
# Inverse transformation of larger numbers gives unequal elements +invilr(-10)
#> [1] 7.213536e-07 9.999993e-01
invilr(c(-10, 0))
#> [1] 7.207415e-07 9.991507e-01 8.486044e-04
# The sum of the elements of the inverse ilr is 1 +sum(invilr(c(-10, 0)))
#> [1] 1
# This is why we do not need all elements of the inverse transformation to go back: a <- c(0.1, 0.3, 0.5) -b <- invilr(a)
#> Error in invilr(a): konnte Funktion "invilr" nicht finden
length(b) # Four elements
#> Error in eval(expr, envir, enclos): Objekt 'b' nicht gefunden
ilr(c(b[1:3], 1 - sum(b[1:3]))) # Gives c(0.1, 0.3, 0.5)
#> Error in ilr(c(b[1:3], 1 - sum(b[1:3]))): konnte Funktion "ilr" nicht finden
+b <- invilr(a) +length(b) # Four elements
#> [1] 4
ilr(c(b[1:3], 1 - sum(b[1:3]))) # Gives c(0.1, 0.3, 0.5)
#> [1] 0.1 0.3 0.5