Displaying 2 results from an estimated 2 matches for "stackoverfolw".
Did you mean:
stackoverflow
2011 May 06
1
Generalized Hyperbolic distribution
How to use the package generalized hyperbolic distribution in order to
estimate the four parameters in the NIG-distribution? I have a data material
with stock returns that I want to fit the parameters to.
--
View this message in context: http://r.789695.n4.nabble.com/Generalized-Hyperbolic-distribution-tp3504369p3504369.html
Sent from the R help mailing list archive at Nabble.com.
2011 Oct 14
4
using do.call to call a list of functions
I am having trouble figuring out how to use do.call to call and run a list of
functions.
for example:
make.draw = function(i){i;function()runif(i)}
function.list = list()
for (i in 1:3) function.list[[i]] = make.draw(i)
will result in
> function.list[[1]]()
[1] 0.2996515
> function.list[[2]]()
[1] 0.7276203 0.4704813
> function.list[[3]]()
[1] 0.9092999 0.7307774 0.4647443
what I