Commit Graph

3240 Commits (44287a2d75c52a72cba7b4cf375c2a8507afbb69)

Author SHA1 Message Date
Stéphane Adjemian (Charybdis) 44287a2d75 Added routine. 2013-03-28 12:31:34 +01:00
Stéphane Adjemian (Charybdis) fbc34e74d4 Fixed bug. 2013-03-28 12:31:34 +01:00
Stéphane Adjemian (Charybdis) 6f8aed5109 Fixed numbering of the unitary tests in @dynSeries/subsasgn method. 2013-03-28 12:31:34 +01:00
Stéphane Adjemian (Charybdis) 974e8b1a39 Fixed bug. 2013-03-28 12:31:33 +01:00
Stéphane Adjemian (Charybdis) 5132e501cf Fixed bug. 2013-03-28 12:31:33 +01:00
Stéphane Adjemian (Charybdis) 35542ec904 Added the possibility to factorize the extraction of variables from a dynSeries object.
In addition to the already implemented selection mechanism using matlab's regular expressions,
we allow the following syntax:

a = ts{'GDP_@US,JP,FR@'};

to extract variables GDP_US, GDP_JP and GDP_FR from dynSeries object ts. If one of these variables
does not exist, an error message is issued.
2013-03-28 12:31:33 +01:00
Stéphane Adjemian (Charybdis) 15a916512f Added unitary test in @dynSeries/extract method. 2013-03-28 12:31:33 +01:00
Stéphane Adjemian (Charybdis) 3da56958bc Cosmetic change. Removed commented line of code. 2013-03-28 12:31:33 +01:00
Stéphane Adjemian (Charybdis) 13ffe7d52c Added test in @dynSeries/check method. 2013-03-28 12:31:33 +01:00
Stéphane Adjemian (Charybdis) 12517aa9f4 Fixed bug. Missing definition of time member in @dynSeries/merge method. 2013-03-28 12:31:33 +01:00
Marco Ratto 9a622298e8 Fixed spurious bugs when new MC smoother is invoked when an old one is already present in gsa results subfolders 2013-03-27 17:39:55 +01:00
Marco Ratto 543b4040c2 Fixed inconsistent behavior of GSA plots w.r.t. nodisplay option. 2013-03-27 17:38:18 +01:00
Marco Ratto bfa3ecbe3b 1) Fix compatibility problems with the Port field in unix nodes of the cluster
2) better cleanup of remnants of remote parallel runs when Strategy ==1
3) for  windows sessions eliminate the use of start, replaced by psexec -d  instanced, to allow cleanup of .bat file
4) fix bug in Strategy==1 that was not properly cleaned by deleting new files on exit
2013-03-27 17:16:28 +01:00
Marco Ratto 203c8ea643 1) Fix compatibility problems with the Port field in unix nodes of the cluster;
2) Fix bug when local machine is accessed through the network in windows;
3) small bug fix in remote directory check;
2013-03-27 16:33:11 +01:00
Marco Ratto b82bc0586a 1) Fix for octave compatibility;
2) cleanup slavejob files
2013-03-27 16:31:45 +01:00
Marco Ratto 2133ae43a6 Allow for exceptions in deleting new files created remotely 2013-03-27 16:30:46 +01:00
Marco Ratto f2cce399b8 1) Fix compatibility problems with the Port field in unix nodes of the cluster;
2) fix in defining the list of files;
2013-03-27 16:30:12 +01:00
Marco Ratto 8cd68dc02a 1) Fix compatibility problems with the Port field in unix nodes of the cluster;
2) bug fix in security checks;
2013-03-27 16:29:50 +01:00
Marco Ratto 0a2f7f3e6d Fix compatibility problems with the Port field in unix nodes of the cluster 2013-03-27 16:28:31 +01:00
Johannes Pfeifer f995f3da90 Bugfix in correlation_mc_analysis
Closes #290 and makes #314 obsolete as we store both auto- and
cross-correlations
2013-03-27 12:26:08 +01:00
Johannes Pfeifer a403d324dc Fix Typo in correlation_mc_analysis 2013-03-27 10:12:53 +01:00
Sébastien Villemot feb0eb8a11 Adapt for change of ismember in MATLAB R2013a 2013-03-25 14:34:07 +01:00
Sébastien Villemot 3025a14ed9 Adapt for removal of luinc in MATLAB R2013a 2013-03-25 12:05:56 +01:00
Ferhat Mihoubi 33bac21c33 Adds end of line codes for various environments 2013-03-22 16:46:52 +01:00
Ferhat Mihoubi 5c2a6b80eb Revert "indicates the endline code for various environments"
This reverts commit f16a8b1658.
2013-03-22 16:14:19 +01:00
Ferhat Mihoubi ac6326758a Adds new preconditioners in iterative solvers 2013-03-22 15:46:47 +01:00
Ferhat Mihoubi 7a8b407380 Adds csv files in the file formats supported by datafile 2013-03-22 15:30:20 +01:00
Ferhat Mihoubi f16a8b1658 indicates the endline code for various environments 2013-03-22 15:27:42 +01:00
Johannes Pfeifer 82c6ff3b1b Merge commit '34fb9f1c62c63e7e4ab41656a7690167449e596f' 2013-03-21 21:22:20 +01:00
Johannes Pfeifer 7518072e77 Fix several bugs related to estimated measurement errors
1. The first call to set_prior overwrote the first column of
estim_params_.var_endo storing the position of the variable with
measurement error in M_.endo_names with the position in
options_.var_obs. All subsequent calls to set_prior then lead to
crashes.
2. At the same time, for correlations of ME, the first column of
estim_params_.corrn still stored the position of the variable with
measurement error in M_.endo_names. But subsequent calls to it were done
as if it stored the position in options_.var_obs

I introduced two new variables in estim_params_ storing the respective
positions in var_obs so as to not necessitate changes in the
preprocessors.

3. For cases of calibrated measurement error correlations, the
covariance matrix was not updated.

4. Fixing a lot of smaller bugs related to measurement errors, including
some copy and paste errors
-
2013-03-21 20:51:12 +01:00
Johannes Pfeifer ebc7d6f67a Add comment why use of old correlation matrix from previous draw is correct and revert change
Due to only using the diagonal of Sigma_e and the correlation matrix having ones on the diagonal, the diagonal entries of the covariance matrix are correctly built from recent draw. Later, when using the new draw for the correlations, only the correctly updated diagonal entries of Sigma_e are used.
2013-03-21 20:49:33 +01:00
Sébastien Villemot 3bbdbf8387 Provisions for MATLAB 8.1 (R2013a) 2013-03-21 18:26:04 +01:00
Stéphane Adjemian (Charybdis) 894a81efb2 Added two new routines to rename name and tex name of a variable in a dynSeries object. 2013-03-21 16:42:13 +01:00
Stéphane Adjemian (Charybdis) 262c6a3a1c Changed the naming convention of the variables in the overloaded operators for the dynSeries class.
Names for the results of basic operations on dynSeries objects was '--NA--'. The name of the result
variables now keep track of the operations. For instance, if we have two dynSeries objects, ts1 and
ts2, respectively holding two variables 'A1' and 'B1', then:

 - the name of the variable in ts3=ts1+ts2 is 'plus(A1,B1)'
 - the name of the variable in ts3=ts1-ts2 is 'minus(A1,B1)'
 - the name of the variable in ts3=ts1*ts2 is 'multiply(A1,B1)'
 - the name of the variable in ts3=ts1/ts2 is 'divide(A1,B1)'
 - the tex name of the variable in ts3=ts1+ts2 is '(A1+B1)'
 - the tex name of the variable in ts3=ts1-ts2 is '(A1-B1)'
 - the tex name of the variable in ts3=ts1*ts2 is '(A1*B1)'
 - the tex name of the variable in ts3=ts1/ts2 is '(A1/B1)'
2013-03-21 16:42:13 +01:00
Stéphane Adjemian (Charybdis) 055ae25785 Fixed typo. 2013-03-21 16:42:13 +01:00
Stéphane Adjemian (Charybdis) 0be1b434d1 Fixed typo. 2013-03-21 16:42:13 +01:00
Stéphane Adjemian (Charybdis) e6a1fbbd81 Fixed typo. 2013-03-21 16:42:12 +01:00
Stéphane Adjemian (Charybdis) 0d16bffff9 Added @dynSeries/check function.
Returns zero if the input argument is a well defined dynSeries object.
2013-03-21 16:42:12 +01:00
Stéphane Adjemian (Charybdis) bb7a1c134d Rewrote @dynSeries/subsasgn method.
+ Added the possibility to rename the assigned variables.
 + Added unitary tests.
2013-03-21 16:42:12 +01:00
Stéphane Adjemian (Charybdis) b195f0ce89 Added @dynSeries/insert method. 2013-03-21 16:42:12 +01:00
Stéphane Adjemian (Charybdis) e60087e671 Added new routine to insert an arbitrary object in a one dimensional cell array. 2013-03-21 16:42:12 +01:00
Stéphane Adjemian (Charybdis) 31d4fe5e6d Added new routine to insert column vector in a matrix. 2013-03-21 16:42:12 +01:00
Stéphane Adjemian (Charybdis) 6c8e1ca94a Added @dynSeries/align method. 2013-03-21 16:42:12 +01:00
Stéphane Adjemian (Charybdis) 6d7a9d6f93 Fixed bug. 2013-03-21 16:42:12 +01:00
Stéphane Adjemian (Charybdis) 54ad672453 Issue an error if two dynSeries objects with common variable names are concatenated. Added a unitary test. 2013-03-21 16:42:12 +01:00
Stéphane Adjemian (Charybdis) 4d09ee6ae2 Added new routine.
Compare two one dimensional cells of strings and count the number of common strings. The
optional second argument returns a formated list of common variables.

*Example*

If we have:

A = {'A1'; 'A2'; 'A3'; 'A4'; 'A5'; 'A6'};
B = {'B1'; 'A2'; 'B3'; 'A4'; 'A1'};

then

[n,message] = common_strings_in_cell_arrays(A,B);

returns n=3 and message='A2, A4 and A1'.
2013-03-21 16:42:12 +01:00
Stéphane Adjemian (Charybdis) 78a89f874c Handle the case where the variable to be removed does not exist. Added a unitary test. 2013-03-21 16:42:12 +01:00
Stéphane Adjemian (Charybdis) 9b4b7c46a7 Added @dynSeries/eq method. 2013-03-21 16:42:12 +01:00
Stéphane Adjemian (Charybdis) 2e10cbc2c5 Added @dynSeries/pop method.
Removes a variable form a dynSeries object.
2013-03-21 16:42:11 +01:00
Stéphane Adjemian (Charybdis) fdfb1173ee Added unitary test in @dynSeries/merge. 2013-03-21 16:42:11 +01:00