View source: R/BIFIE.crosstab.R
BIFIE.crosstab | R Documentation |
Creates cross tabulations and computes some effect sizes.
BIFIE.crosstab( BIFIEobj, vars1, vars2, vars_values1=NULL, vars_values2=NULL,
group=NULL, group_values=NULL, se=TRUE )
## S3 method for class 'BIFIE.crosstab'
summary(object,digits=3,...)
## S3 method for class 'BIFIE.crosstab'
coef(object,...)
## S3 method for class 'BIFIE.crosstab'
vcov(object,...)
BIFIEobj |
Object of class |
vars1 |
Row variable |
vars2 |
Column variable |
vars_values1 |
Optional vector of values of variable |
vars_values2 |
Optional vector of values of variable |
group |
Optional grouping variable(s) |
group_values |
Optional vector of grouping values. This can be omitted and grouping values will be determined automatically. |
se |
Optional logical indicating whether statistical inference based on replication should be employed. |
object |
Object of class |
digits |
Number of digits for rounding output |
... |
Further arguments to be passed |
A list with following entries
stat.probs |
Statistics for joint and conditional probabilities |
stat.marg |
Statistics for marginal probabilities |
stat.es |
Statistics for effect sizes |
output |
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.