View source: R/tidyContinuousProbability.R
probabilitiesFromContinuous_SGolay | R Documentation |
The purpose of this is to calculate the probabilities of events from continuous data. This function is useful when you have a set of observations from a continuous distribution.
probabilitiesFromContinuous_SGolay(df, continuousVar, k_05 = 10, ...)
df |
a dataframe containing a column of a continuous variable X and one row per observation, df may also be grouped and in which case the grouping is preserved in the result. |
k_05 |
the sgolay smoothing window width. |
continousVar |
the datatable column(s) containing the observation. |
A mutated datatable with observations of X, the total number of observations of X (N), the probability density (p_x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.