getDensityForX: PDF or CDF of a variable.

Description Usage Arguments Value Note

Description

PDF or CDF of a variable.

Usage

1
2
3
getDensityForX(data, densityForVariableName, type = "PDF", nBins = NULL,
  meanOnVariable = NULL, globalInterval = NULL, zoomInterval = NULL,
  optionalVariableName = NULL, optionalVariableFormat = "density")

Arguments

optionalVariableFormat

Value

A data table containing two variable :

varX

contains the bins position on the variable axis

histForX

contains the bins density

Note

DevStatus: One pass - utility: ?/5 TODO(Albert): Check if that function is not redundant - if not make it more robust

atecFuncGetDensityForX returns a data.table containing either the PDF or CDF of a variable.

Function takes a data table and return a data table containing Either a CDF or a PDF for a variable. The data.table contains two variable varX the bin position and histForX the bin probability. The variable of interest can be average accross a grouping variable declared in meanOnVariable. Permits to obtain precise distribution and interaction with an optional variable.

Zoom interval has not been added yet If nBins is NULL number of bin = Number of observations/10


albertbuchard/r-pipeline documentation built on May 5, 2019, 6:57 p.m.