Dear R-users,

I have the following data

x <- runif(300,min=1,max=230)

y <- x*0.005 + 0.2
y <- y+rnorm(100,mean=0,sd=0.1)
y <- y%%1 #  <------- modulo operation
plot(x,y)

and would like to recapture the slope (0.005) and intercept(0.2). I wonder if 
there are any clever algorithms to do this. I was looking at the function 
lm.cirucalar. Is this the method to use? If, which of the references is best 
too look at?

Eryk

______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Reply via email to