stat_dem: Get a sample estimate

Description Usage Arguments Value

View source: R/outcome_statistic.R

Description

stat_dem computes the mean Democrats, stat_Z computes the sample proportion of the simulated oucome Z, stat_Y the mean of the simulated continuous variable Y.

Usage

1
2
3
4
5
stat_dem(tbl)

stat_Z(tbl)

stat_Y(tbl)

Arguments

tbl

A dataframe with the variable pid3_leaner

Value

A scalar, in this case the proportion of Democrats (including leaners)


kuriwaki/svysim documentation built on Jan. 27, 2021, 5:37 a.m.