moe_topline: Make a topline of a variable

Description Usage Arguments Details Value Examples

View source: R/moeTopline.R

Description

moe_topline returns a data.frame containing a topline table with the margin of error

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
moe_topline(
  mulaw,
  variable,
  weight = zwave_weight,
  remove = c(""),
  n = TRUE,
  pct = TRUE,
  valid_pct = TRUE,
  cum_pct = TRUE,
  zscore = 1.96
)

Arguments

mulaw

The data.frame containing the version of the integrated file you wish to use

variable

The variable, unquoted

weight

The weight variable, defaults to zwave_weight

remove

a character string of response values to remove from the output after performing all calculations

n

Logical, determines if a row total is included or not

pct

logical, determines if the pct column is included or not

valid_pct

logical, determines if the valid percent column is included

cum_pct

Logical, determines if a cumulative percent column is included or not

zscore

defaults to 1.96, consistent with a 95% confidence interval

Details

This is a wrapper around pollster::moe_topline()

Value

A tibble

Examples

1
moe_topline(integ, g40)

jdjohn215/MLSPTools documentation built on Sept. 2, 2020, 1:16 a.m.