[R] permTREND function in package "perm"

li li hannah.hlx at gmail.com
Sat Jan 9 02:24:11 CET 2016

Hi all,
  I am trying to figure out how to use the function permTREND correctly in
package "perm". There does not seem to be any examples given for this
function. In the help file, it says the following:

## Default S3 method:
permTREND(x, y, alternative = c("two.sided", "less", "greater"), exact =
NULL, method = NULL, methodRule = methodRuleTREND1,

## S3 method for class 'formula'



numeric vector of response scores for the first group

numeric vector of either response scores for the second group (for permTS)
or trend scores for each observation (for permTREND)

a factor or character vector denoting group membership

But I am still not sure. What does it mean by S3  method for formula?
also, trend score in the explanation for "y" mean what?

Take the data below for example, x should be the count value for the row
corresponding to "Yes", and "y" should be the dose levels "0, 0.15. 0.5,
1.5, 5"?  Need some help on this. Thanks!

> addmargins(dat)

    dose 0 dose 0.15 dose 0.5 dose 1.5 dose 5 Sum

yes      4         3        4        5      8  24

no       4         5        4        3      0  16

Sum      8         8        8        8      8  40

	[[alternative HTML version deleted]]

More information about the R-help mailing list