contingency_table_data: Cross-over data contingency table

Description Usage Arguments Details Value References See Also

View source: R/contingency_table_data.R

Description

Builds a contingency table for a cross-over dataset.

Usage

1

Arguments

data

A tibble of class xover_data.

outcome

The chosen binary outcome variable from data upon which the contingency_table will be based. Should be stated absolutely, i.e., not as a character string.

summary

A logical variable indicating whether a summary of the function's progress should be printed to the console. Defaults to T.

Details

contingency_table_data() supports the calculation of a contingency table for a cross-over dataset. Precisely, a dataset of class xover_data is provided (see data), along with a binary outcome variable within this dataset (see outcome), and the data is reduced to its complete case form for this outcome. A contingency table is then constructed for this complete case data.

Note that datasets can be converted to class xover_data using as_xover_data.

Value

A tibble containing the determined contingency table.

References

Jones B, Kenward MG (2014) Design and Analysis of Cross-Over Trials. Chapman and Hall: London, 3rd Edition.

See Also

as_xover_data for converting datasets to class xover_data.


mjg211/xover documentation built on Oct. 16, 2019, 10:46 a.m.