multipdf_cont: Multiple Proportional Density Functions for Continuous...

View source: R/ztils.R

multipdf_contR Documentation

Multiple Proportional Density Functions for Continuous Variables

Description

This function gets the proportional density functions for selected distributions against continuous, non-negative numbers. Possible distributions include "normal", "lognormal", "gamma", "exponential", and "all".

Usage

multipdf_cont(var, seq_length = 50, distributions = "all")

Arguments

var

The variable of which to get the PDF.

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

multipdf_cont(iris$Petal.Length)

multipdf_cont(iris$Sepal.Length, 100, c("normal", "lognormal"))

ztils documentation built on April 11, 2025, 5:52 p.m.