[R] Clarks 2Dt function in R

From: <bialozyt_at_biologie.uni-marburg.de>
Date: Mon, 04 Apr 2011 02:11:08 -0700


Dear Ben,

you answerd to Nancy Shackelford about Clarks 2Dt function. Since the thread ended just after your reply, I would like to ask, if you have an idea how to use this function in R

I defined it the following way:

function(x , p, u) {
  (p/(pi*u))*(1+(x^2/u))^(p+1)
}

and would like to fit this one to my obeservational data (count)

       [,1] [,2]

 [1,]   15   12
 [2,]   45   13
 [3,]   75   10
 [4,]  105    8
 [5,]  135   16
 [6,]  165    5
 [7,]  195   15
 [8,]  225    8
 [9,]  255    9

[10,] 285 12
[11,] 315 5
[12,] 345 4
[13,] 375 1
[14,] 405 1
[15,] 435 1
[16,] 465 0
[17,] 495 1
[18,] 525 2
[19,] 555 0
[20,] 585 0
[21,] 615 0
[22,] 645 0
[23,] 675 0

but I am not able to fit anything.
Do you have an idea?
I guess there is something wrong in my formula for Clarks 2Dt

Thank you for reading

Ciao
Ronald Bialozyt



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 Mon 04 Apr 2011 - 11:12:52 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 Mon 04 Apr 2011 - 15:00:26 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