HELP COPULA ERORR IN MATLAB
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
I estimate copula in matlab by using this code: lower = 0.0001; theta0 = 1; [kappa2, LL2,output2,lambda2,grad2,hessian2] = fmincon('claytonCL',theta0,[],[],[],[],lower,[],[],options,[ugold,usek]); invhess=inv(hessian2); stdErr2 = sqrt(diag(invhess)) LL2=-LL2 k2=length(kappa2); AIC2=-2*LL2+2*k2+((2*k2*(k2+1))/(T-k2-1))
when run this code in matlab, have error: Undefined function or variable 'options'. But I run with another data, I can run this code. I understand what happend with my code. Could you help me, please?
1 Kommentar
Geoff Hayes
am 6 Okt. 2014
Tran - the error message, Undefined function or variable 'options', is telling you that you haven't defined/declared the variable options before you have tried to use it with fmincon. Nowhere in the above code have you defined this variable or either ugold and usek. Is this an oversight, or have you not shown us all of your code?
Antworten (0)
Siehe auch
Kategorien
Mehr zu Copula Distributions and Correlated Samples finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!