-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added a script to generate plots for example4.m without the statistics
toolbox.
- Loading branch information
Showing
2 changed files
with
34 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
% Run this script after running example4.m. | ||
load('example4-theta04-theta2-100trials.mat'); | ||
|
||
figure(1); | ||
clf; | ||
subplot(2,2,1); | ||
bplot([alpha_n_diff mu_n_diff s_n_diff]); | ||
set(gca,'YLim',[0 0.002]); | ||
set(gca,'XTick',1:3,'XTickLabel',{'\alpha','\mu','s'},'FontSize',14); | ||
ylabel('maximum absolute difference'); | ||
title('Null models'); | ||
|
||
subplot(2,2,2); | ||
bplot([alpha_e_diff mu_e_diff s_e_diff]) | ||
set(gca,'YLim',[0 0.002]); | ||
set(gca,'XTick',1:3,'XTickLabel',{'\alpha','\mu','s'},'FontSize',14); | ||
ylabel('maximum absolute difference'); | ||
title('Enrichment models'); | ||
|
||
subplot(2,2,3); | ||
scatter(log10(bf(:, 1)), log10(bf(:, 2)),'b','*'); | ||
hold on | ||
plot([-5 30],[-5 30],'-','Color','red'); | ||
hold off | ||
% ozline = refline([1 0]); | ||
% ozline.Color = 'r'; | ||
xlabel('Log10 Bayes factors from VARBVS','Interpreter','none'); | ||
ylabel('Log10 Bayes factors from RSS-VARBVSR','Interpreter','none'); | ||
title(''); |