[R] permTREND function in package "perm"
bgunter.4567 at gmail.com
Sat Jan 9 08:15:50 CET 2016
?UseMethod ## for S3 method help.
In addition, please read An Introduction to R (ships with R) or other
online tutorial to learn about S3 methods. You should not expect this
forum to provide you information that you should learn about yourself.
As for your other queries, someone who is familiar with the package
will have to reply. I am not.
"The trouble with having an open mind is that people keep coming along
and sticking things into it."
-- Opus (aka Berkeley Breathed in his "Bloom County" comic strip )
On Fri, Jan 8, 2016 at 5:24 PM, li li <hannah.hlx at gmail.com> wrote:
> 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!
> 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]]
> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
More information about the R-help