powered by
This function generates an empirical PDF using dy.dx on NNS.CDF.
NNS.PDF(variable, degree = 1, target = NULL, bins = NULL, plot = TRUE)
a numeric vector.
integer; (degree = 0) is frequency, (degree = 1) (default) is area.
(degree = 0)
(degree = 1)
a numeric range of values [a,b] where a < b. NULL (default) uses the variable min and max observations respectively.
NULL
variable
integer; NULL Selects number of bins. Bin width defaults to density(x)$bw.
density(x)$bw
logical; plots PDF.
Returns a data.table containing the intervals used and resulting PDF of the variable.
Viole, F. and Nawrocki, D. (2013) "Nonlinear Nonparametric Statistics: Using Partial Moments" https://www.amazon.com/dp/1490523995/ref=cm_sw_su_dp
# NOT RUN { set.seed(123) x <- rnorm(100) NNS.PDF(x) ## Custom target range NNS.PDF(x, target = c(-5, 5)) # }
Run the code above in your browser using DataLab