powered by
Produces a controlled mean comparison table. Rows defined by values of independent variable and columns defines by values of the control variable.
imeansC(function1 = NULL, function2 = NULL, data, digits = 2)
A function identifying the dependent variable in the form ~ depvar
A function specifying the independent and control variables in the form ~ indepvar + controlvar
A design dataset (like gssD, nesD, statesD, or worldD)
Number of digits to report after decimal place, optional (default = 2).
A controlled mean comparison table (an "ftable" class object)
# NOT RUN { library(poliscidata) imeansC(function1 = ~ft_dem, function2 = ~gender + married, data=nesD) imeansC(~ft_dem, ~gender + married, nesD) # }
Run the code above in your browser using DataLab