?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.
Cheers,
Bert
Bert Gunter
"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,
> control=permControl(),...)
>
> ## S3 method for class 'formula'
> permTREND(formula,data,subset,na.action,...)
>
> where,
>
> x
>
> numeric vector of response scores for the first group
> y
>
> numeric vector of either response scores for the second group (for permTS)
> or trend scores for each observation (for permTREND)
> g
>
> 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!
> Hanna
>
>
>> 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]]
>
> ______________________________________________
> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.