Learn R Programming

poliscidata (version 2.3.0)

xtabC: Controlled cross tabulation analysis with optional weights

Description

Controlled cross tabulation analysis with optional weights

Usage

xtabC(function1, data, digits = 2)

Arguments

function1

A function of the relationship to be analyzed expressed in the form ~ depvar + indepvar + controlvar

data

A design dataset (e.g. gssD, nesD, statesD, worldD)

digits

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

Value

A controlled cross tabulation as a multi-dimensional array.

Examples

Run this code
# NOT RUN {
   library(poliscidata)
   
   xtabC(~ divlaw2 + attend3 + kids, gssD)
# }

Run the code above in your browser using DataLab