cdf | R Documentation |
Builds the cumulative distribution of a vector, using a step% of the data as fixed-intervals.
cdf(y = y, step = 0.05)
y |
a vector of a random variable |
step |
a numeric proportion of the data used as increment interval for building the cdf of the random variable. The default value for 'step' is 0.05, representing a 5%. |
By default the cumulative distribution is build using 5% of the data as intervals, that is to say, from 0.05 (i.e., 5%) to 0.95 (i.e., 95%).
returns a dataframe having two columns: the first contains the random variable values and the second the cumulative distribution for the variable.
Christian Salas-Eljatib
Salas-Eljatib, C. 2021. Análisis de datos con el programa estadístico R: una introducción aplicada. Ediciones Universidad Mayor, Santiago, Chile. 170 p. https://eljatib.com/rlibro
y.var <- rnorm(10)
cdf(y.var)
cdf(y.var, step=0.1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.