as_xover_data: Convert dataset to class 'xover_data'

Description Usage Arguments Details Value

View source: R/as_xover_data.R

Description

Converts an input dataset to be of class xover_data.

Usage

1

Arguments

data

A matrix or data.frame containing data corresponding to a cross-over trial.

summary

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

Details

as_xover_data() supports the conversion of an input dataset to be of class xover_data. Precisely, a matrix or data.frame is provided (see data) where each row corresponds to a particular outcome variable, and the function converts it to a tibble with class xover_data, augmenting the column names as required. In adddition, checks are performed that the dataset corresponds to a cross-over trial.

The input dataset must contain information on the period, subject, and treatment/sequence for each outcome variable.

Value

A tibble of class xover_data.


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