This is an internal function called though the GUI to prepare data for input into runRSCABS
.
RSCABSMain(Data, GroupVar = "", ReplicateVar = "", BoScabs = FALSE)
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.
The name of the column that contain the information about the treatment level. Increasing values indicate higher treatments.
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.
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.
Returns a list with the following values:
The endpoint that is being tested.
The treatment level.
The severity score from the histology.
The test statistic corresponding that row's endpoint treatment level, and R-Score.
The corresponding p-value
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.