[R] fitCopula method in R

From: <atreibel3_at_mail.gatech.edu>
Date: Thu 18 Jan 2007 - 16:15:19 GMT


I am attempting to fit monthly stock returns to possible copula functions using
the copula package in R.  Below is my code (mat2 is a 2x119 matrix of the two
stock returns):

my.cop <- normalCopula(param=.3, dim = 2, dispstr = "un")
myfit <- fitCopula(mat2,my.cop, start=.65, optim.control= list(NULL), method =

Unfortunately, I continue to receive this error:

Error in optim(start, loglikCopula, method = method, copula = copula,  :
        initial value in 'vmmin' is not finite
In addition: Warning message:
NaNs produced in: qnorm(p, mean, sd, lower.tail, log.p)

I don't know why my start value is wrong or how to choose a correct one.  Any
help is greatly appreicated.  Thanks.


R-help@stat.math.ethz.ch mailing list
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Received on Fri Jan 19 03:43:46 2007

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Thu 18 Jan 2007 - 17:30:26 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.