probabilitiesFromContinuous_SGolay: Helper function to calculate probability from continuous data...

View source: R/tidyContinuousProbability.R

probabilitiesFromContinuous_SGolayR Documentation

Helper function to calculate probability from continuous data in a tidy friendly manner

Description

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.

Usage

probabilitiesFromContinuous_SGolay(df, continuousVar, k_05 = 10, ...)

Arguments

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.

Value

A mutated datatable with observations of X, the total number of observations of X (N), the probability density (p_x)


terminological/tidy-info-stats documentation built on Nov. 19, 2022, 11:23 p.m.