complete_case_data: Complete case data

Description Usage Arguments Details Value References See Also

View source: R/complete_case_data.R

Description

Reduces a cross-over dataset to complete case form.

Usage

1

Arguments

data

A tibble of class xover_data.

outcome

The chosen outcome variable from data upon which the complete case reduction 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

complete_case_data() supports the reduction of a cross-over dataset to those outcomes corresponding to subjects with no missing data. Precisely, a dataset of class xover_data is provided (see data), along with an outcome variable within this dataset (see outcome), and the rows corresponding to subjects for whom at least one outcome variable is missing for the chosen outcome variable, based on an assessment of data$sequence, are removed.

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

Value

A tibble of class xover_data. Specifically, the input dataset data reduced to its complete case form.

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.