[prev in list] [next in list] [prev in thread] [next in thread] 

List:       r-sig-finance
Subject:    [R-SIG-Finance] Zeros of a hairy function
From:       david.ardia () unifr ! ch (ARDIA David)
Date:       2006-11-15 12:34:55
Message-ID: 2AA9A291D7760C40B00A75A149DB5D37043D65 () EXCHANGE4 ! unifr ! ch
[Download RAW message or body]

If your function is f(x), then you could apply optim to g(x) := f(x)^2. 

You can also consider the DEoptim package to perform robust optimization
based on a genetic algorithm.

Hope it helps,

David

-----Original Message-----
From: r-sig-finance-bounces@stat.math.ethz.ch
[mailto:r-sig-finance-bounces at stat.math.ethz.ch] On Behalf Of Valentin
Popov
Sent: mercredi, 15. novembre 2006 12:11
To: r-sig-finance at stat.math.ethz.ch
Subject: [R-SIG-Finance] Zeros of a hairy function


Hi all,

In order to get an estimator for the correlation between two asstes I
need the zeros of a quite "hairy" nonlinear function. Could you give me
a tip which function in R could supply a solution? I thought of  'optim'
but it will only minimize the function but not get its zeros.

Thanks a lot!

Valentin



Send instant messages to your online friends
http://uk.messenger.yahoo.com 
	[[alternative HTML version deleted]]

_______________________________________________
R-SIG-Finance at stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-sig-finance


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic