expectFixedSamples: specify the number of expected observations for each class...

View source: R/missingValues.R

expectFixedSamplesR Documentation

specify the number of expected observations for each class based on a fixed number.

Description

specify the number of expected observations for each class based on a fixed number.

Usage

expectFixedSamples(df, discreteVars, sampleCount, ...)

Arguments

df

- may be grouped, in which case the value is interpreted as different features

discreteVars

- the column(s) of the categorical value (X) quoted by vars(...) (usually the outcome)

sampleCount

- the number of samples per outcome (equal numbers).

Value

a dataframe with the expected values of all outcomes if there are a fixed number of samples


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