Description Usage Arguments Author(s) Examples
View source: R/triangular_parameters.R
Compute the parameters and plot the fitted triangular distribution of the random variable X.
1 |
data |
A vector of interest rates. |
Salvador Cruz Rambaud, Fabrizio Maturo, Ana MarÃa Sánchez Pérez
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | # example 1
data=c(0.00,-0.05,-0.05,-0.06,-0.06,0.02,-0.06,-0.05,-0.04,-0.05,
-0.03,-0.06,0.04,-0.05,-0.08,-0.05,-0.12,-0.03,-0.05,-0.04,-0.06)
triangular_parameters(data)
# example 2
data<-rnorm(n=200,m=0.75,sd=0.2)
triangular_parameters(data)
# example 3
data = c(1.77,1.85,1.85,1.84,1.84,1.83,1.85,1.85,1.88,1.85,1.80,1.84,1.91,1.85,1.84,1.85,
1.86,1.85,1.88,1.86)
triangular_parameters(data)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.