[R] generate a series of fucntion

ximing wu xiwu at uoguelph.ca
Mon Jul 21 21:54:24 CEST 2003

Hi there,

I want to generate a large amount of functions,

say f=function(x,t) exp(-t[1]-t[2]*g_1(x)-t[3]*g_2(1+x))

where g_1(x) and g_2(x) are from a long list of moments, such as x, x^2, 
log(x), log(1+x) .. and so on.

Any suggestions on how to do this efficiently?

thanks a lot.


More information about the R-help mailing list