powered by
Difference of proportions test with optional sample weights. Reports P-value of two-tailed significance test.
prop.testC(y, x, w = NULL, digits = 3)
Dependent variable, should be coded as 0 or 1.
Independent variable, should have only two unique values.
Weights, optional.
Number of digits to report after decimal place, optional (default = 3).
No return
# NOT RUN { library(poliscidata) prop.testC(nes$dem, nes$gender, w=nes$nesw) # }
Run the code above in your browser using DataLab