[R] Help with circular-linear regression in package circular

From: Kristen Covino <Kristen_Covino_at_umit.maine.edu>
Date: Wed, 20 Feb 2008 10:39:12 -0500


I am looking for assistance in figuring out how to use the circular-linear regression in package circular. See below for an example of what I have been trying. If anyone can help me with this please reply to my email address. Thank you,

This is what I have been doing:
with a linear variable x; lets use >x=c(1:10) and a circular variable y; for example >y=circular(c(123,239,265,342,198,253,343,237,162,247),units='degrees') trying to do the regression; >lm.circular(y,x, type='c-l') I get the error, >Error in lm.circular.cl(...) : 'init' is missing with no default But I tried to create a vector, init with the same columns as x (as the description of c-l regression says and I still get an error)
>Error in lm.circular.cl(...) : 'init' must have the same number of elements as the columns of 'x'

Any assistance is appreciated.

Kristen Covino
Graduate Student and Teaching Assistant
School of Biology and Ecology
University of Maine at Orono
5751 Murray Hall
Office: 217
Phone: 207-581-2547
Email: kristen.covino_at_umit.maine.edu



R-help_at_r-project.org mailing list
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. Received on Wed 20 Feb 2008 - 15:44:15 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 20 Feb 2008 - 16:30:15 GMT.

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

list of date sections of archive