coefficientRelease: Release additional model coefficients from DP covariance...

Description Usage Arguments Examples

View source: R/utilities-covariance.R

Description

Function to extract regression coefficients using the differentially private covariance matrix via the sweep operator. This is the function to obtain coefficients for additional models after the covariance.release() function has already been called.

Usage

1

Arguments

formula

Formula, regression formula used on data

release

Numeric, private release of covariance matrix

n

Integer, indicating number of observations

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 
range.income <- c(-10000, 713000)
range.education <- c(1, 16)
range <- rbind(range.income, range.education)
dpCov <- dpCovariance$new(mechanism="mechanismLaplace",var.type = 'numeric', n = 10000,
                          epsilon = 1, columns = c("income", "educ"), rng = range, formula='income~educ')
out <- dpCov$release(PUMS5extract10000)
coefficient.release('educ~income', out$release, n=10000)

## End(Not run)

IQSS/PSI-Library documentation built on Feb. 15, 2020, 9:03 p.m.