Learn R Programming

poliscidata (version 2.3.0)

prop.testC: 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

Run this code
# NOT RUN {
   library(poliscidata)
   
   prop.testC(nes$dem, nes$gender, w=nes$nesw)
# }

Run the code above in your browser using DataLab