This reproducible R Markdown analysis was created with workflowr (version 1.6.1). The Checks tab describes the reproducibility checks that were applied when the results were created. The Past versions tab lists the development history.
Great job! The global environment was empty. Objects defined in the global environment can affect the analysis in your R Markdown file in unknown ways. For reproduciblity it’s best to always run the code in an empty environment.
The command set.seed(20200328) was run prior to running the code in the R Markdown file. Setting a seed ensures that any results that rely on randomness, e.g. subsampling or permutations, are reproducible.
Great! You are using Git for version control. Tracking code development and connecting the code version to the results is critical for reproducibility.
The results in this page were generated with repository version df91113. See the Past versions tab to see a history of the changes made to the R Markdown and HTML files.
Note that you need to be careful to ensure that all relevant files for the analysis have been committed to Git prior to generating the results (you can use wflow_publish or wflow_git_commit). workflowr only checks the R Markdown file, but you know if there are other scripts or data files that it depends on. Below is the status of the Git repository when the results were generated:
Note that any generated files, e.g. HTML, png, CSS, etc., are not included in this status report because it is ok for generated content to have uncommitted changes.
These are the previous versions of the repository in which changes were made to the R Markdown (analysis/results_accuracy.Rmd) and HTML (docs/results_accuracy.html) files. If you’ve configured a remote Git repository (see ?wflow_git_remote), click on the hyperlinks in the table below to view the files as they were in that past version.
The results below are based on simulation with 600 samples, 1000 variables of which 50 were causal, 5 responses with a per-response proportion of variance explained (PVE) of 0.5. Variables, X, were drawn from MVN(0, Gamma), causal effects, B, were drawn from MVN(0, Sigma). The responses, Y, were drawn from MN(XB, I, V).
mr.mash was fitted to the training data (80% of the data) updating V and updating the prior weights using mixSQP. Then, responses were predicted on the test data (20% of the data). The mixture prior consisted of 101 components.
In the plots below, each color/symbol defines a diffrent response.
Here, we compare the estimated effects with the true effects.
Partition_metric Y1 Y2 Y3 Y4 Y5
1 Training data r2 0.5338 0.5418 0.4904 0.5239 0.5620
2 Test data r2 0.4591 0.4476 0.4630 0.4523 0.4237
3 Training data bias 1.0606 1.0586 0.9935 1.0013 1.0971
4 Test data bias 0.9892 1.0660 1.0666 1.0905 0.9659
5 Training data MSE 24.6985 23.8540 25.3913 22.4603 23.9106
6 Test data MSE 24.5054 29.4890 27.1642 29.6734 26.7496
The results below are based on simulation with 600 samples, 1000 variables of which 50 were causal, 5 responses with a per-response proportion of variance explained (PVE) of 0.5. Variables, X, were drawn from MVN(0, Gamma), causal effects, B, were drawn from MVN(0, Sigma). The responses, Y, were drawn from MN(XB, I, V).
mr.mash was fitted to the training data (80% of the data) updating V and updating the prior weights using mixSQP. Then, responses were predicted on the test data (20% of the data). The mixture prior consisted of 101 components.
In the plots below, each color/symbol defines a diffrent response.
Here, we compare the estimated effects with the true effects.
Partition_metric Y1 Y2 Y3 Y4 Y5
1 Training data r2 0.5373 0.5341 0.5146 0.5716 0.5570
2 Test data r2 0.4600 0.3854 0.4395 0.4473 0.4948
3 Training data bias 1.1737 1.1069 1.1264 1.1019 1.1270
4 Test data bias 0.9847 0.9370 1.1124 1.1859 0.9449
5 Training data MSE 38.1690 22.6568 25.8972 21.0610 26.7705
6 Test data MSE 41.8959 28.1329 34.3800 34.3338 30.6942
The results below are based on simulation with 600 samples, 1000 variables of which 50 were causal, 5 responses with a per-response proportion of variance explained (PVE) of 0.5. Variables, X, were drawn from MVN(0, Gamma), causal effects, B, were drawn from MVN(0, Sigma). The responses, Y, were drawn from MN(XB, I, V).
mr.mash was fitted to the training data (80% of the data) updating V and updating the prior weights using mixSQP. Then, responses were predicted on the test data (20% of the data). The mixture prior consisted of 101 components.
In the plots below, each color/symbol defines a diffrent response.
Here, we compare the estimated effects with the true effects.
Partition_metric Y1 Y2 Y3 Y4 Y5
1 Training data r2 0.4892 0.5037 0.4710 0.4907 0.5390
2 Test data r2 0.4148 0.4341 0.4220 0.4639 0.4251
3 Training data bias 1.0358 1.0376 0.9876 0.9817 1.0887
4 Test data bias 1.0015 1.0979 1.0552 1.1736 1.0079
5 Training data MSE 14.4128 14.0238 14.5096 12.8917 13.6560
6 Test data MSE 14.0750 15.9244 15.3882 15.9627 14.0499
The results below are based on simulation with 600 samples, 1000 variables of which 50 were causal, 5 responses with a per-response proportion of variance explained (PVE) of 0.5. Variables, X, were drawn from MVN(0, Gamma), causal effects, B, were drawn from MVN(0, Sigma). The responses, Y, were drawn from MN(XB, I, V).
mr.mash was fitted to the training data (80% of the data) updating V and updating the prior weights using mixSQP. Then, responses were predicted on the test data (20% of the data). The mixture prior consisted of 101 components.
In the plots below, each color/symbol defines a diffrent response.
Here, we compare the estimated effects with the true effects.
Partition_metric Y1 Y2 Y3 Y4 Y5
1 Training data r2 0.4107 0.4811 0.3574 0.5330 0.4272
2 Test data r2 0.3990 0.2959 0.3766 0.3298 0.3542
3 Training data bias 1.1022 1.0512 1.0676 1.0356 1.0803
4 Test data bias 1.0478 0.7843 1.1576 0.9455 0.9463
5 Training data MSE 36.2095 32.5375 17.8351 39.5427 18.2162
6 Test data MSE 36.5641 38.1858 20.4419 62.0936 19.4614