beta2i | R Documentation |
Transformation of estimated contrasts to indicator potential.
beta2i(x, scale = 1)
x |
numeric, real valued coefficients. |
scale |
numeric, scaling constant. |
Returns a numeric vector (I = abs(tanh(x * scale))).
Peter Solymos <psolymos@gmail.com>
opticut
and multicut
use the scaled I values as indicator potential.
ocoptions
for setting value for the default scaling factor.
x <- seq(-5, 5, 0.1)
Col <- occolors(c("red", "blue"))(10)
plot(x, beta2i(x), type = "n")
s <- seq(1, 0.1, -0.1)
for (i in 1:10) {
lines(x, beta2i(x, scale = s[i]), col = Col[i])
text(1.5 - 0.2, beta2i(1.5, scale = s[i]), s[i], col = Col[i])
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.