Closed wleoncio closed 4 years ago
- Error: Improper correlation matrix. Make sure all eigenvalues are non-negative
Addressed on f2ecbdca2542cdbea9fb0941a9254bdb9e6b72eb and 178f0f0e3871b26879012c3ac806b05aef6ab1f3.
- When “cor_matrix” is specified, the default variances are not explained.
- When setting cor_matrix independently, the number of variables is directly set as the number of rows. However, when setting “cor_matrix”and other arguments (“c_mean”, “sigma”) together, the number of variables will not be set directly. The number of continuous and categorical variables (n_X and n_W) should be specified, otherwise there will be an error.
- Error: n_X + n_W + theta must not be different from ncol(cor_matrix). The former add up to 8, whereas the latter equals 3 Maybe we could have more explanations for this error message in the manual.
Addressed on 3984c8a5bf725c297903214a10f64ac3a53ec514.
Setting the correlation matrix to m3 would lead to the following error: Error in n_W[[l]] : subscript out of bounds When I change the data structure to a simpler one, it would work. The cor_matrix seems to be incompatible with multi-level sample design.
Bug fixed on ccb9f5a981ff23055d77257eb6c0fc33da899d04 to allow for multilevel compatibility.
0. Setup
I've tested most values below. Not all testings are shown in this report. I only included the testings that are showing errors/warnings or inconsistent results.
4. Correlation matrix
Overall suggestions
[x] When “cor_matrix” is specified, the default variances are not explained.
[x] When setting cor_matrix independently, the number of variables is directly set as the number of rows. However, when setting “cor_matrix”and other arguments (“c_mean”, “sigma”) together, the number of variables will not be set directly. The number of continuous and categorical variables (n_X and n_W) should be specified, otherwise there will be an error.
Error and warning messages
[x] Error: Improper correlation matrix. Make sure all eigenvalues are non-negative
[x] Error: n_X + n_W + theta must not be different from ncol(cor_matrix). The former add up to 8, whereas the latter equals 3 Maybe we could have more explanations for this error message in the manual.
[x] Setting the correlation matrix to m3 would lead to the following error: Error in n_W[[l]] : subscript out of bounds When I change the data structure to a simpler one, it would work. The cor_matrix seems to be incompatible with multi-level sample design.
[x] For detailed error messages, see working log 0824-0831