Learn R Programming

distrr (version 0.0.6)

Fhat_df_: Weighted empirical cumulative distribution function (data frame version)

Description

Weighted empirical cumulative distribution function (data frame version)

Usage

Fhat_df_(.data, x, weights)

Arguments

.data

a data frame

x

name of the numeric column (as character)

weights

name of the weight column (as character)

Value

a data frame with columns: x, wcum and Fhat

Examples

Run this code
# NOT RUN {
data(invented_wages)
Fhat_df_(invented_wages, "wage", "sample_weights")
# }

Run the code above in your browser using DataLab