weight_by: weight_by

Description Usage Arguments Value See Also

View source: R/stat.R

Description

generates a weighting function produced using 'bin_weights(num, dem, by, bin_no)'

Usage

1
weight_by(num, den, by, bin_no = 10)

Arguments

num

is the numeric vector to use in the numerator of the weight

den

is the numeric vector to use in the denomintor of the weight

by

is the numeric vector to take the cdf of 'num' and 'dem' with respect to

bin_no

is the number of bins to use in 'bin_weights()'

Value

a numeric vector of weighting function

See Also

bin_weights


crumplecup/muddier documentation built on Aug. 18, 2021, 11:02 a.m.