Qfun: Fitting the Parametric Bayesian Model of Ecological Inference...

View source: R/Qfun.R

QfunR Documentation

Fitting the Parametric Bayesian Model of Ecological Inference in 2x2 Tables

Description

Qfun returns the complete log-likelihood that is used to calculate the fraction of missing information.

Usage

Qfun(theta, suff.stat, n)

Arguments

theta

A vector that contains the MLE E(W_1),E(W_2), var(W_1),var(W_2), and cov(W_1,W_2). Typically it is the element theta.em of an object of class ecoML.

suff.stat

A vector of sufficient statistics of E(W_1), E(W_2), var(W_1),var(W_2), and cov(W_1,W_2).

n

A integer representing the sample size.

References

Imai, Kosuke, Ying Lu and Aaron Strauss. (2011). “eco: R Package for Ecological Inference in 2x2 Tables” Journal of Statistical Software, Vol. 42, No. 5, pp. 1-23.

Imai, Kosuke, Ying Lu and Aaron Strauss. (2008). “Bayesian and Likelihood Inference for 2 x 2 Ecological Tables: An Incomplete Data Approach” Political Analysis, Vol. 16, No. 1 (Winter), pp. 41-69.

See Also

ecoML


eco documentation built on Nov. 4, 2022, 1:07 a.m.

Related to Qfun in eco...