search for: anddarl

Displaying 1 result from an estimated 1 matches for "anddarl".

Did you mean: andar
2007 Mar 03
3
How to convert List object to function arguments?
...se } # Performs some GoF tests (KS, Chi-Square, Anderson-Darling,...) # (the "..." list contains parameters for CDF function) goftests <- function( x, dist, ... ) { cdfname <- distname2cdfname( dist ); res$ks <- ks.test( x, cdfname, ... ); # res$chisq <- ... # res$anddarl <- ... return( res ) }; ##### END CODE SNIP ##### So the problem is passing "..." to CDF function (for instance, see ks.test above) in the "right form". The "..." is passed (to "goftests") as a list object and it should be converted to an "arg...