[R] Transform data to uniform variates

From: Aloui Riadh <riadh_aloui_at_hotmail.com>
Date: Wed, 18 Jun 2008 08:37:05 -0700 (PDT)

To estimate Copula using canonical maximum likelihood method we need first tranforming data to uniform variates. I found this code written by Jun Yan: cbind((rank(dat[, 1]) - 0.5)/n, (rank(dat[, 2]) - 0.5)/n)

where dat represent the considered data.

Why do not use this formula rank(dat)/(n+1) is it the same?

-- 
View this message in context: http://www.nabble.com/Transform-data-to-uniform-variates-tp17985481p17985481.html
Sent from the R help mailing list archive at Nabble.com.

______________________________________________
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 18 Jun 2008 - 16:27:41 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 18 Jun 2008 - 16:30:48 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