prop.testC {poliscidata} | R Documentation |
Difference of Proportions Test
Description
Difference of proportions test with optional sample weights. Reports P-value of two-tailed significance test.
Usage
prop.testC(y, x, w = NULL, digits = 3)
Arguments
y |
Dependent variable, should be coded as 0 or 1. |
x |
Independent variable, should have only two unique values. |
w |
Weights, optional. |
digits |
Number of digits to report after decimal place, optional (default = 3). |
Value
No return
Examples
library(poliscidata)
prop.testC(nes$dem, nes$gender, w=nes$nesw)
[Package poliscidata version 2.3.0 Index]