RSCABSMain: Cleans data and runs RSCABS when called from the GUI...

Description Usage Arguments Value Author(s)

View source: R/RSCABSMain.R

Description

This is an internal function called though the GUI to prepare data for input into runRSCABS.

Usage

1
RSCABSMain(Data, GroupVar = "", ReplicateVar = "", BoScabs = FALSE)

Arguments

Data

A standard data set in the tall format. Every row indicates an organism. The data set must contain columns for the treatment level and every tested histological endpoint.

GroupVar

The name of the column that contain the information about the treatment level. Increasing values indicate higher treatments.

ReplicateVar

The name of the column that contain the information about the replicate structure. This is optional, if this is not declared at function call, BoScabs will be set to FALSE.

BoScabs

Indicate the type of analysis to be performed. Use FALSE to select the Rao-Scott adjustment to the Cochran-Armitage test and TRUE to ignore the adjustment.

Value

Returns a list with the following values:

Response

The endpoint that is being tested.

Treatment

The treatment level.

R-Score

The severity score from the histology.

Statistic

The test statistic corresponding that row's endpoint treatment level, and R-Score.

P-Value

The corresponding p-value

Signif

The significance flag with "." is a p-value > 0.05, "*" is a 0.01 < p-value <= 0.05, "**" for 0.001 < p-value <= 0.01, and "***" for p-value <= 0.001.

Author(s)

Joe Swintek


RSCABS documentation built on May 1, 2020, 9:06 a.m.