[R] Error : 'start' contains NA values when fitting frank copula

Soumen Banerjee @oumen08 @ending from gm@il@com
Sat Apr 21 11:22:56 CEST 2018


Hello!
I am trying to fit a copula to some data in R and I get the error mentioned
above. This is the code for a reproducible example -

library(copula)
data = matrix(data=runif(600),nrow=200,ncol=3)
data[,2] = 2*data[,1]
data[,3] = 3*data[,1]
fr_cop = frankCopula(dim=3)
fit_fr_cop = fitCopula(fr_cop,pobs(data),method = "mpl") #Error Here

The error says : Error in fitCopula.ml(copula, u = data, method = method,
start = start, : 'start' contains NA values

What could be going wrong?

	[[alternative HTML version deleted]]




More information about the R-help mailing list