BIFIE.crosstab.Rd
Creates cross tabulations and computes some effect sizes.
Object of class BIFIEdata
Row variable
Column variable
Optional vector of values of variable vars1
Optional vector of values of variable vars2
Optional grouping variable(s)
Optional vector of grouping values. This can be omitted and grouping values will be determined automatically.
Optional logical indicating whether statistical inference based on replication should be employed.
Object of class BIFIE.univar
Number of digits for rounding output
Further arguments to be passed
A list with following entries
Statistics for joint and conditional probabilities
Statistics for marginal probabilities
Statistics for effect sizes \(w\) (based on \(\chi^2\)), Cramers \(V\), Goodman's gamma, the PRE lambda measure and Kruskals tau.
Extensive output with all replicated statistics
More values
survey::svytable
,
Hmisc::wtd.table
#############################################################################
# EXAMPLE 1: Imputed TIMSS dataset
#############################################################################
data(data.timss1)
data(data.timssrep)
# create BIFIE.dat object
bifieobj <- BIFIEsurvey::BIFIE.data( data.list=data.timss1, wgt=data.timss1[[1]]$TOTWGT,
wgtrep=data.timssrep[, -1 ] )
#--- Model 1: cross tabulation
res1 <- BIFIEsurvey::BIFIE.crosstab( bifieobj, vars1="migrant",
vars2="books", group="female" )
summary(res1)