Description Usage Arguments Value Author(s)
An internal function that calculates the RSCABS or SCABS test statistic with the associated p-value.
1 | RSCABK(x.i.j, n.i.j, m.i, TestK, test.type)
|
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. |
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. |
Joe Swintek
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.