imeansC {poliscidata}R Documentation

Controlled Mean Comparison Table

Description

Produces a controlled mean comparison table. Rows defined by values of independent variable and columns defines by values of the control variable.

Usage

imeansC(function1 = NULL, function2 = NULL, data, digits = 2)

Arguments

function1

A function identifying the dependent variable in the form ~ depvar

function2

A function specifying the independent and control variables in the form ~ indepvar + controlvar

data

A design dataset (like gssD, nesD, statesD, or worldD)

digits

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

Value

A controlled mean comparison table (an "ftable" class object)

Examples

   library(poliscidata)
   
   imeansC(function1 = ~ft_dem, function2 = ~gender + married, data=nesD)
   
   imeansC(~ft_dem, ~gender + married, nesD)

[Package poliscidata version 2.3.0 Index]