waDP: Weighted average variable

Description Usage Arguments Value

View source: R/utility_functions.R

Description

This function creates a weighted average vector that can be added as a column to dp data with appropriate standard deviation in first row for use in lmdp

Usage

1
waDP(data, weight_vars, values)

Arguments

data

DP data frame where first row is sd of dp noise

weight_vars

A character vector with the names of count variables that make up the weights

values

A numeric vector of known constants associated with each count

Value

A new weighted average variable that can be added as a new column to the DP data frame


georgieevans/PrivacyUnbiased documentation built on May 22, 2021, 1:01 p.m.