stan | R Documentation |
Simple function to map a vector of values to the range of 0 and 1 values to have a better behavior of the algorithm.
stan(x, lb=0, ub=1)
x |
A vector of numeric values. |
lb |
Lower bound value to map the x values. |
ub |
Upper bound value to map the x values. |
Simple function to map a vector of values to the range of 0 and 1 values to have a better behavior of the algorithm.
new values in range 0 to 1
Covarrubias-Pazaran G (2016) Genome assisted prediction of quantitative traits using the R package sommer. PLoS ONE 11(6): doi:10.1371/journal.pone.0156744
x <- rnorm(20, 10, 3);x
stan(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.