incomplete_table: incomplete_table

View source: R/incomplete_table.R

incomplete_tableR Documentation

incomplete_table

Description

Fills a relative contingency table with n missing values such that the table entries can be recomputed. In case that no solution can be found an error is generated.

Usage

incomplete_table(tab, n, maxit = 1000)

Arguments

tab

table: a contingency table

n

integer: number of missing values

maxit

integer: number of maximal iterations (default: 1000)

Value

a contingency table including marginal values and total sum with missing values. The attribute

  • fillin gives information in which order the entries can be calculated, and

  • full gives the contingency table including marginal values and total sum.

Examples

tab <- rbind(c(0.02, 0.04, 0.34), c(0.02, 0.28, 0.3))
incomplete_table(tab, 7)

sigbertklinke/exams2moodle documentation built on July 6, 2023, 3:26 p.m.