bcstats: Comparing "back checks" in R (a clone of Stata's bcstats)

Description Usage Arguments Details Value

Description

Comparing "back checks" in R (a clone of Stata's bcstats)

Usage

1
2
3
4
5
bcstats(surveydata, bcdata, id, enumerator = NA, enumteam = NA,
  backchecker = NA, bcteam = NA, t1vars = NA, t2vars = NA,
  t3vars = NA, ttest = NA, level = 0.95, signrank = NA, lower = FALSE,
  upper = FALSE, nosymbol = FALSE, trim = FALSE, okrange = NA,
  nodiff = NA, exclude = NA)

Arguments

surveydata

The survey data

bcdata

The back check data

id

The unique ID

enumerator

Display enumerators with high error rates and variables with high error rates for those enumerators

enumteam

Display the overall error rates of all enumerator teams

t1vars

The list of "type 1" variables. See details.

t2vars

The list of "type 2" variables. See details.

t3vars

The list of "type 3" variables. See details.

ttest

Run paired two-sample mean-comparison tests for varlist in the back check and survey data using ttest

level

Set confidence level for ttest; default is 0.95

signrank

Run Wilcoxon matched-pairs signed-ranks tests in the back check and survey data using signrank

lower

Convert all string variables to lower case before comparing

upper

Convert all string variables to upper case before comparing

nosymbol

Replace symbols with spaces in string variables before comparing

trim

Remove leading or trailing blanks and multiple, consecutive internal blanks in string variables before comparing

okrange

Do not count a value in list in the back check data as a difference if it falls within range of the survey data

nodiff

Do not compare back check responses that equal # (for numeric variables) or string (for string variables)

exclude

Specifies that back check responses that equal values in list will not be compared. These responses will not affect error rates and will not appear in the comparisons data set. Used when the back check data set contains data for multiple back check survey versions.

Details

Variable types:

Value

A named list constaining the back check as a data.frame, error rates by groups, and tests for differences


vikjam/bcstatsR documentation built on May 3, 2019, 6:12 p.m.