library(RCPA3)
if (FALSE) {
# one sample test: x1 variable against hypothesized value (of x2)
testpropsC(x1=nes$gun.bg.checks, x2=.500, w=nes$wt, response="1. Favor a great deal",
xlim=c(0, .2))
# two sample test x1 versus x2
testpropsC(x1=approve.local.covid, x2=approve.pres.covid, w=wt, data=nes,
response="1. Approve strongly", xlim=c(0, .2))
# test of proportions dv by iv
testpropsC(dv=marital, iv=gender, w=wt, data=nes, response="3. Widowed",
xlim=c(-.10, 0))
}
Run the code above in your browser using DataLab