[R] Help with circular statistics

From: Pascual Lopez <paslopez_at_hotmail.com>
Date: Wed 28 Jun 2006 - 21:26:38 EST


Hello everybody, Im new on this list and Im looking for help with circular statistics.

I would like to perform a Rayleigh test for a vector of radians.

According to the example I type in the workspace of R:

data <- rvm(0.41, 5.02, 2.41, 1.57, 4.03, 6.14, 5.46, 0.79, 1.55, 1.18, 5.54, 4.21, 4.47, 0.28, 1.70, 5.31, 0.68, 0.88, 5.48, 5.16, 2.47, 2.72, 6.00, 5.68, 5.50, 6.19, 2.75, 2.97, 3.02, 4.80, 1.89, 2.06, 1.80) r.test(data)

And the programm returns the following:

data <- rvm(0.41, 5.02, 2.41, 1.57, 4.03, 6.14, 5.46, 0.79, 1.55, 1.18, 5.54, 4.21, 4.47, 0.28, 1.70, 5.31, 0.68, 0.88, 5.48, 5.16, 2.47, 2.72, 6.00, 5.68, 5.50, 6.19, 2.75, 2.97, 3.02, 4.80, 1.89, 2.06, 1.80) Error in rvm(0.41, 5.02, 2.41, 1.57, 4.03, 6.14, 5.46, 0.79, 1.55, 1.18, :

        unused argument(s) ( ...)
> r.test(data)

Error in sin(x) : Non-numeric argument to mathematical function

Data are in radians and I have loaded the CircStat package previously. How could I perform this analysis? Why it returns "unused argument(s) (...)? How can I entry my data vector?

Thank you in advance.

Pascual

        [[alternative HTML version deleted]]



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Wed Jun 28 21:30:07 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Thu 29 Jun 2006 - 00:12:37 EST.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.