Unlimited learning, half price | 50% off

Last chance! 50% off unlimited learning

Sale ends in


RSCABS (version 0.9.5)

RSCABK: Runs the kth slice of RSCABS

Description

An internal function that calculates the RSCABS or SCABS test statistic with the associated p-value.

Usage

RSCABK(x.i.j, n.i.j, m.i, TestK, test.type)

Arguments

x.i.j

matrix containing the number of observed "successes" for replicate i on treatment j.

n.i.j

matrix containing the number of observations for replicate i on treatment j.

m.i

matrix of number units in each treatment/replicate combination.

TestK

The kth severity score being tested.

test.type

Indicate the type of analysis to be performed. Use "RS" to select the Rao-Scott adjustment to the Cochran-Armitage test and "CA" 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 to that row's endpoint treatment level and R-Score.

P-Value

The corresponding p-value

Signif

The significance flag where "." 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.