HELP COPULA ERORR IN MATLAB

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 件のコメント

Geoff Hayes
Geoff Hayes 2014 年 10 月 6 日
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?

サインインしてコメントする。

回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeProbability Distributions and Hypothesis Tests についてさらに検索

質問済み:

2014 年 10 月 6 日

コメント済み:

2014 年 10 月 6 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by