multicdf_cont {ztils} | R Documentation |
Multiple Cumulative Distribution Functions for Continuous Variables
Description
This function gets the cumulative distribution function for selected distributions against a continuous, non-negative input variable. Possible distributions include "normal", "lognormal", "gamma", "exponential", "cauchy", "t", "weibull", "logistic", and "all".
Usage
multicdf_cont(var, seq_length = 50, distributions = "all")
Arguments
var |
The variable of which to get the CDF |
seq_length |
The length of sequence to fit the distribution to |
distributions |
The distributions to fit x against |
Value
A dataframe with x, the real density, and the pdf of the desired distributions with length (nrows) equal to seq_length +1.
Examples
multicdf_cont(iris$Petal.Length)
multicdf_cont(iris$Sepal.Length,
100,
c("normal", "lognormal")
)
[Package ztils version 1.0.0 Index]