请选择 进入手机版 | 继续访问电脑版
楼主: shierfeishilixu
29099 89

[学习分享] MATLAB中Copula的Code   [推广有奖]

xiaobudaiabc 发表于 2013-5-11 10:55:05 |显示全部楼层 |坛友微信交流群
楼主QQ是多少呢?我也想跟您交流copula

使用道具

lz求发一份到邮箱yangyu8809@126.com
表示灰常感谢

使用道具

crazygod 在职认证  发表于 2013-6-14 14:29:32 |显示全部楼层 |坛友微信交流群
楼主,我用你的命令运行时出现两个问题,请指教:
1、[ kappa2 LL2] = fmincon('claytonCL',theta0,[],[],[],[],lower,[],[],options,[u,v]);
Warning: To use the default trust-region-reflective algorithm you must
supply the gradient in the objective function and set the GradObj option to
'on'. FMINCON will use the active-set algorithm instead. For information on
applicable algorithms, see Choosing the Algorithm in the documentation.
> In fmincon at 520
Warning: Your current settings will run a different algorithm
(interior-point) in a future release.
> In fmincon at 525
2、>> [ kappa6 LL6] = fmincon('gumbelCL',theta0,[],[],[],[],lower,[],[],options,[u,v]);
Warning: To use the default trust-region-reflective algorithm you must
supply the gradient in the objective function and set the GradObj option to
'on'. FMINCON will use the active-set algorithm instead. For information on
applicable algorithms, see Choosing the Algorithm in the documentation.
> In fmincon at 520
Warning: Your current settings will run a different algorithm
(interior-point) in a future release.
> In fmincon at 525
Cannot find an exact (case-sensitive) match for 'Gumbel_cdf'

The closest match is: gumbel_cdf in C:\copula\gumbel_cdf.m


Error in gumbelCL (line 26)
CL = log(Gumbel_cdf(data(:,1),data(:,2),theta)) - log(data(:,1)) -
log(data(:,2));

Error in fmincon (line 635)
      initVals.f = feval(funfcn{3},X,varargin{:});

Caused by:
    Failure in initial user-supplied objective function evaluation. FMINCON
    cannot continue.

使用道具

fjjianfei 发表于 2013-8-26 17:52:34 |显示全部楼层 |坛友微信交流群
      这个代码,在Patton Copula toolbox里就有就有的,在copula_example_code.m这个文件里。运行会出点小错,就如楼上的第六个案例,其中(case-sensitive)是大小写有问题,打开其中的文件,把大小写变一下就行。
      可惜动态的案例比较少,有谁知道其他的时变案例代码?比如Clayton-Copula的。
此地古称佛国,满街都是圣人

使用道具

人品大帝 发表于 2013-8-29 05:51:38 |显示全部楼层 |坛友微信交流群
谢谢楼主的共享,这个应该跟Patton的toolbox有关吧?

使用道具

chenyuanx 发表于 2013-8-31 15:56:32 |显示全部楼层 |坛友微信交流群
可以发给我看看吗?chenyuanx2010@163.com。谢谢啦@

使用道具

zhedashuishu 发表于 2013-10-27 09:30:07 |显示全部楼层 |坛友微信交流群
很不错的东西,正在找

使用道具

1037091772 在职认证  发表于 2014-4-2 12:16:51 |显示全部楼层 |坛友微信交流群
这个必须顶

使用道具

gis5956 发表于 2014-4-3 09:52:08 |显示全部楼层 |坛友微信交流群
感谢楼主

使用道具

gssdzc 在职认证  发表于 2014-4-7 11:43:51 |显示全部楼层 |坛友微信交流群
感谢分享

使用道具

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注cda
拉您进交流群

京ICP备16021002-2号 京B2-20170662号 京公网安备 11010802022788号 论坛法律顾问:王进律师 知识产权保护声明   免责及隐私声明

GMT+8, 2024-4-17 02:46