Re: [R] Newbie that don't understand R code

2009-08-18 Thread kfcnhl
Yap -- View this message in context: http://www.nabble.com/Newbie-that-don%27t-understand-R-code-tp25009034p25028474.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listin

Re: [R] Newbie that don't understand R code

2009-08-18 Thread Steve Lianoglou
Hi, Comments inline and at end: On Aug 17, 2009, at 11:36 AM, kfcnhl wrote: I got some R code that I don't understand. Question as comment in code //where is t comming from, what is phi inverse rAC <- function(name, n, d, theta){ #generic function for Archimedean copula simulation illegalpar

[R] Newbie that don't understand R code

2009-08-18 Thread kfcnhl
I got some R code that I don't understand. Question as comment in code //where is t comming from, what is phi inverse rAC <- function(name, n, d, theta){ #generic function for Archimedean copula simulation illegalpar <- switch(name, clayton = (theta < 0), gumbel = (theta < 1), frank = (theta < 0

Re: [R] Newbie that don't understand R code

2009-08-18 Thread Berend Hasselman
kfcnhl wrote: > > I got some R code that I don't understand. > > Question as comment in code > //where is t comming from, what is phi inverse > > rAC <- function(name, n, d, theta){ > . > phi.inverse <- switch(name, > clayton = function(t, theta) > //where is t comming from, wh