wtd.ttestC {poliscidata}R Documentation

Weighted T-Test

Description

This function conducts a weighted t-test

Usage

wtd.ttestC(f1, f2, data, digits = 3)

Arguments

f1

Function identifying interval-level dependent variable in the form ~ depvar

f2

A function that defines groups to be compared in the form ~ indepvar

data

A design dataset such as gssD, nesD, statesD, or worldD

digits

Number of digits to report after decimal place, optional (default = 3).

Value

No return

Examples

   library(poliscidata)
   
   wtd.ttestC(f1 = ~ ftgr_gay, f2 = ~ gender, data = nesD)
   
   wtd.ttestC(~ ft_rep, ~ gender, nesD)

[Package poliscidata version 2.3.0 Index]