pistar.2by2: The Mixture Index of Fit for Odds Ratios in 2-by-2 Tables

View source: R/pistar.2by2.R

pistar.2by2R Documentation

The Mixture Index of Fit for Odds Ratios in 2-by-2 Tables

Description

pistar.2by2 is used to estimate pi* for a given cross-product ratio (i.e. odds ratio) in a 2-by-2 table using the method devised by Clogg, Rudas, and Xi (1995).

Usage

pistar.2by2(data, alpha = 1, jack = FALSE, verbose = TRUE)

Arguments

data

a 2-by-2 contingency table.

alpha

numeric: cross-product ratio

jack

logical: perform jackknife?

verbose

logical: print during estimation?

Value

Object of class "Pistar", "PistarCT", and "Pistar2by2" with the following slots:

call

the matched call.

pistar

a list of estimated values of the mixture index of fit.

est

for the supplied data and odds ratio.

jack

vector of values from jackknife.

pred

a list of predicted values with three items:

model

the model component multiplied by (1-pi*)

unres

the unrestricted component multiplied by pi*

combi

the two-point mixture, i.e. (1-pi*)M + pi*U

data

the supplied data.

param

a list of with a single item

est

numeric: the supplied value of cross-product ratio.

References

Clogg, C. C., Rudas, T., & Xi, L. (1995). A new index of structure for the analysis of models for mobility tables and other cross-classifications. Sociological Methodology, 197-222.

Rudas. T., Zwick. R., (1997) Estimating the Importance of Differential Item Functioning. Journal of Educational and Behavioral Statistics, Vol. 22, No. 1 (Spring, 1997), pp. 31-45

Examples

	H <- matrix((1:4)*1e1, byrow=TRUE, ncol=2)

	h <- pistar.2by2(H, alpha=1, jack=TRUE)

	h

	str(h)

	plot(h)

	summary(h)

jmedzihorsky/pistar documentation built on June 4, 2022, 9:58 a.m.