[R] Log likelihood estimation using bivariate archimedean copula

2008-05-09 Thread kakul modani
er of R. Regards, Kakul Modani __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.

[R] How to use the optim function if the length of the objective function is greater than 1?

2008-04-26 Thread kakul modani
Hi, Please help me out with this.Im a new user of R. Thanks [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting

[R] Fwd: how to convert non numeric data into numeric?

2008-04-21 Thread kakul modani
*@ Mr. Alspach and @ Mr. Winsemius : Thanks for replying. reqdIRR contains returns in lognormal form.I am trying to estimate parameter for type-1 Gumbel Distribution and fit it into reqdIRR. If i use sapply its returning me NA values. * I am having the following error in my function function(the

[R] how to convert non numeric data into numeric?

2008-04-21 Thread kakul modani
I am having the following error in my function function(theta,reqdIRR) { theta1<-theta[1] theta2<-theta[2] n<-length(reqdIRR) constant<- n*(theta1+theta2) sum1<-lapply(reqdIRR*exp(theta1),FUN = sum) sum2<-lapply(exp(theta2 - reqdIRR*exp(theta1)),FUN = sum) sum = sum1 + sum2 log.fcn = constant - as