View source: R/melonnpan_utilities.R
SqSin | R Documentation |
This function applies back transformation to the predicted values of a statistical model with arcsine square root transformed compositional response variable.
SqSin(x, adjust = TRUE)
x |
A numerical vector of arcsine square root transformed compositions or proportions. |
adjust |
Should values less than 0 be mapped to 0 and values greater than pi/2 be mapped to 1? Defaults to TRUE. |
ArcSin
# This is a simple demonstration
y <- ArcSin(runif(100,0,1))
x <- rnorm(100,0,1)
z <- predict(lm(y ~ x))
SqSin(z)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.