ind2x2.Rd
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ind2x2.R
\name{ind2x2}
\alias{ind2x2}
\title{Independence 2x2 table}
\usage{
ind2x2(x, margin = 3, pTabMethod = c("dirichlet", "half", "classical"))
}
\arguments{
\item{x}{a 2x2 table}
\item{margin}{if multidimensional table (larger than 2-dimensional),
then the margin determines on which dimension the independene tables should be estimated.}
\item{pTabMethod}{\sQuote{classical} that is function \code{prop.table()} from package base or method \dQuote{half} that add 1/2 to each cell
to avoid zero problems.}
}
\value{
The independence table(s) with either relative or absolute frequencies.
}
\description{
Estimates the expected frequencies from an 2x2 table under the
null hypotheses of independence.
}
\examples{
data(employment)
ind2x2(employment)
}
\references{
K. Facevicova, K. Hron, V. Todorov, D. Guo, M. Templ (2014).
Logratio approach to statistical analysis of 2x2 compositional tables.
\emph{Journal of Applied Statistics}, Volume 41 (5), 944--958.
DOI:10.1080/02664763.2013.856871
}
\author{
Kamila Facevicova, Matthias Templ
}