Learn R Programming

eiPartialID (version 0.1.2)

calcSummaryOutputValues_: Internal/private method. Compute bounds and summary statistics according to Jiang et al. 2019

Description

calcSummaryOutputValues_() is an internal/private helper method for calculating the bounds. Called by calcSummaryOutputValues().

Usage

calcSummaryOutputValues_(x, t, n, useXRangeOffset = TRUE)

Arguments

x

Numeric (double-precision) vector. Contains the proportion of variable X in each precinct (or analagous geographic unit)

t

Numeric (double-precision) vector. Contains the proportion of variable T in each precinct (or analagous geographic unit)

n

Numeric (double-precision) vector. Contains the number of elements (people/households/etc.) in each precinct (or analagous geographic unit)

useXRangeOffset

boolean If True, an offset of 0.00001 is applied to l and u to avoid division by 0 in subsequent calculations. Default TRUE.

Value

List object with the bounds and summary statistics

Examples

Run this code
# NOT RUN {
outputList <- calcSummaryOutputValues_(x, t, n, TRUE)
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab