Description Usage Arguments Details Value Author(s) References Examples
View source: R/monotonicityTest.R
Performs the test for monotonicity as per the the OECD guidance on statistics.
1 | monotonicityTest(Data, Treatment, Response)
|
Data |
A data set. |
Treatment |
The name (as a string) of the treatment variable. |
Response |
The name (as a string) of the response variable. |
calls both getLineContrast
and getQuadContrast
to attain the contrasts used in the monotonicity test.
A table of test statistics for both the linear and quadratic trends. If the quadratic trend is significant and the linear trend is not, then the response is not monotonic, otherwise it is consider to be monotonic.
Joe Swintek
Current Approaches in the Statistical Analysis of Ecotoxicity Data A guidance to application DOI: 10.1787/9789264085275-en
1 2 3 4 5 6 7 8 9 | #Data
data(lengthWeightData)
#Subset the data
SubData<-lengthWeightData[lengthWeightData$Age=='8 week', ]
SubData<-SubData[SubData$Generation=='F1', ]
SubData<-SubData[SubData$SEX=='M', ]
#Run
monotonicityTest(Data=SubData, Treatment='Treatment',
Response='WEIGHT')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.