combine_comparison_results: Combine several comparison results into one excel...

Description Usage Arguments Value Examples

Description

Combine several comparison results into one excel spreadsheet.

Usage

1

Arguments

filename

Output spreadsheet file name.

...

Results from diff_compare. The function can accept as many comparing results as possible, but at least 2.

Value

No return value.

Examples

1
2
3
4
res1 <- diff_compare(dat1=data.baseline, dat2=data.primary, wgt1=PERS_WGT, wgt2=PERS_WGT, varlist=varlist, segment="SEGID1")
res2 <- diff_compare(dat1=data.baseline, dat2=data.president.election, wgt1=PERS_WGT, wgt2=PERS_WGT, varlist=varlist, segment="SEGID2")
res3 <- diff_compare(dat1=data.baseline, dat2=data.post.election, wgt1=PERS_WGT, wgt2=PERS_WGT, varlist=varlist, segment="SEGID3")
combine_comparison_results("CompareOutput.xlsx", res1, res2, res3)

yangx227/SimmonsResearchR documentation built on Oct. 5, 2017, 4:09 p.m.