formated_read_input: Function to read in the data

Description Usage Arguments Value

View source: R/nof1gen.wrap.R

Description

A function that allows us to read in the data and fix any binomial inputs to be 0 and 1.

Usage

1
formated_read_input(data, response_type)

Arguments

data

The data file we want to format. This is simply a data frame with outcomes. We can input either a single outcome or multiple outcomes. The outcomes each have a treatment and a result vector.

response_type

The response type of the data. Can be a list of strings if we have several outcomes to examine or a single string.

Value

The function returns the formated data.


arisp99/nof1gen documentation built on May 19, 2019, 9:37 p.m.