raw_table: Summary data table for nof1

Description Usage Arguments Value Examples

View source: R/nof1.summary.R

Description

Provides a summary data table for the particular outcome in a particular dataset.

Usage

1
raw_table(nof1)

Arguments

nof1

nof1 object created using nof1.data

Value

Gives a comprhensive table with several statistical values. Each column indicates the value given. For a normal or poisson response type the following are given:

Treat

The treatment recieved

mean

The average value of the outcome

sd

The standard deviation for the outcome

2.5%

2.5% of the data are equal to or less than this value

50%

50% of the data are equal to or less than this value

97.5%

97.5% of the data are equal to or less than this value

For a binomial or ordinal response type, returns a table where first row is each treatment and the following rows are the the number of data points taken at each possible value.

Examples

1
2
3
4
Y <- laughter$Y
Treat <- laughter$Treat
nof1 <- nof1.data(Y, Treat, ncat = 11, baseline = "Usual Routine", response = "ordinal")
raw_table(nof1)

jiabei-yang/nof1ins documentation built on Sept. 7, 2021, 1:10 p.m.