Skip to content

Commit

Permalink
minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
naffe15 committed May 4, 2021
1 parent 7146d25 commit db55866
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions v4.2/bvar_.m
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,10 @@
cnnctdnss_ = 1;
end
if isfield(options,'Ridge')==1
Ridge_ = options.Ridge;
Ridge_ = 1;%options.Ridge;
if isfield(options.Ridge,'est') == 1
Ridge_ = options.Ridge.est;
end
cnnctdnss_ = 1;
if isfield(options.Ridge,'lambda') == 1
Ridge_lambda = options.Ridge.lambda;
Expand All @@ -524,7 +527,10 @@
if exist('lasso') ~= 2
error('Cannot estimate VAR with Lasso: matlab stat toolbox needed')
end
Lasso_ = options.Lasso;
Lasso_ = 1;%options.Lasso;
if isfield(options.Lasso,'est') == 1
Lasso_ = options.Lasso.est;
end
cnnctdnss_ = 1;
if isfield(options.Lasso,'lambda') == 1
Lasso_lambda = options.Lasso.lambda;
Expand All @@ -540,7 +546,10 @@
if exist('lasso') ~= 2
error('Cannot estimate VAR with ElasticNet: matlab stat toolbox needed')
end
ElasticNet_ = options.ElasticNet;
ElasticNet_ = 1;%options.ElasticNet;
if isfield(options.ElasticNet,'est') == 1
ElasticNet_ = options.ElasticNet.est;
end
cnnctdnss_ = 1;
if isfield(options.ElasticNet,'lambda') == 1
ElasticNet_lambda = options.ElasticNet.lambda;
Expand Down

0 comments on commit db55866

Please sign in to comment.