Dear Tommaso,
I am trying to run the CrossSectional part of this project. Is it correct to edit run.m like this?(see below) BTW, nothing else changed.
measures_setup = { % NAME ENABLED ANALYZE COMPARE FUNCTION 'Component' false true true @(ds,temp,file,analyze)run_component(ds,temp,file,bw,0.99,0.98,0.05,0.2,0.75,analyze); 'Connectedness' false true true @(ds,temp,file,analyze)run_connectedness(ds,temp,file,bw,0.05,false,0.06,analyze); 'CrossEntropy' false true true @(ds,temp,file,analyze)run_cross_entropy(ds,temp,file,bw,'G',0.4,'W','N',analyze); 'CrossQuantilogram' false true true @(ds,temp,file,analyze)run_cross_quantilogram(ds,temp,file,bw,0.05,60,'SB',0.05,100,analyze); 'CrossSectional' true true true @(ds,temp,file,analyze)run_cross_sectional(ds,temp,file,0.95,0.40,0.08,0.40,3,analyze); 'Default' false true true @(ds,temp,file,analyze)run_default(ds,temp,file,bw,'BSM',3,0.08,0.45,2,0.10,100,5,0.95,analyze); 'Liquidity' false true true @(ds,temp,file,analyze)run_liquidity(ds,temp,file,bw,21,5,'B',500,0.01,0.0004,analyze); 'RegimeSwitching' false true true @(ds,temp,file,analyze)run_regime_switching(ds,temp,file,true,true,true,analyze); 'Spillover' false true true @(ds,temp,file,analyze)run_spillover(ds,temp,file,bw,10,'G',2,4,analyze); };
If the way I set is correct, I'm confused about the error that MATLAB reported.(see below)
bivariate_caviar>bivariate_caviar_internal (line 78) too many outputs error bivariate_caviar (line 49) [caviar,beta,ir_fm,ir_mf,se,stats] = bivariate_caviar_internal(r,a,cir,cse); error run_cross_sectional>run_cross_sectional_internal (line 111) [caviar,~,ir_fm,ir_mf] = bivariate_caviar(r_i,ds.A); error run_cross_sectional (line 48) [result,stopped] = run_cross_sectional_internal(ds,temp,out,k,d,car,sf,fr,analyze); error run>@(ds,temp,file,analyze)run_cross_sectional(ds,temp,file,0.95,0.40,0.08,0.40,3,analyze) error run (line 159) [result,stopped] = run_function(ds,temp,out,analyze);
I'm new to MATLAB, so maybe I'm doing a stupid thing here.
How to fix the issue to get the results as expected?