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 2e37a1d. 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_convergence.Rmd) and HTML (docs/results_convergence.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. The mixture prior consisted of 101 components.
Here, we investigate convergence. Convergence was reached when max(\(mu1_{t}\) - \(mu1_{t-1}\)) was less than 1e-8.
plot(progress_dat1$iter, progress_dat1$ELBO_diff, xlab="Iteration", ylab="log Difference in ELBO", main="ELBO vs iteration", type="b", pch=16, cex.lab=1.5, cex.axis=1.5, log="y")
Warning in xy.coords(x, y, xlabel, ylabel, log): 7 y values <= 0 omitted
from logarithmic plot
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. The mixture prior consisted of 101 components.
Here, we investigate convergence. Convergence was reached when max(\(mu1_{t}\) - \(mu1_{t-1}\)) was less than 1e-8.
plot(progress_dat2$iter, progress_dat2$ELBO_diff, xlab="Iteration", ylab="log Difference in ELBO", main="ELBO vs iteration", type="b", pch=16, cex.lab=1.5, cex.axis=1.5, log="y")
Warning in xy.coords(x, y, xlabel, ylabel, log): 13 y values <= 0 omitted
from logarithmic plot
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. The mixture prior consisted of 101 components.
Here, we investigate convergence. Convergence was reached when max(\(mu1_{t}\) - \(mu1_{t-1}\)) was less than 1e-8.
plot(progress_dat3$iter, progress_dat3$ELBO_diff, xlab="Iteration", ylab="log Difference in ELBO", main="ELBO vs iteration", type="b", pch=16, cex.lab=1.5, cex.axis=1.5, log="y")
Warning in xy.coords(x, y, xlabel, ylabel, log): 18 y values <= 0 omitted
from logarithmic plot
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. The mixture prior consisted of 101 components.
Here, we investigate convergence. Convergence was reached when max(\(mu1_{t}\) - \(mu1_{t-1}\)) was less than 1e-8.
plot(progress_dat4$iter, progress_dat4$ELBO_diff, xlab="Iteration", ylab="log Difference in ELBO", main="ELBO vs iteration", type="b", pch=16, cex.lab=1.5, cex.axis=1.5, log="y")