This documentation page applies to an outdated major AMT version. We show it for archival purposes only.
Click here for the documentation menu and here to download the latest AMT (1.6.0).
function plotlangendijk2002likelihood(la,le,ci,tit,horlin)
%PLOTLANGENDIJK2002LIKELIHOOD likelihood statistics according to Langendijk et al. (2002)
% Usage: plotlangendijk2002likelihood(la,le,ci)
% plotlangendijk2002likelihood(la,le,ci,tit)
% plotlangendijk2002likelihood(la,le,ci,dynlin)
%
% Input parameters:
% la : actual likelihood
% le : expected likelihood
% ci : confidence interval for expected likelihood
% tit : set to 'spatstrat' optionally
% horlin : vector with dynamic values for reference lines
%
% `plotlikelangendijk(la,le,ci)` plots likelihood statistics according to
% Langendijk et al. (2002). XXX DESCRIPTION OF PARAMETERS
%
% See also: langendijk2002likelihood, langendijk2002
%
% References:langendijk2002contribution
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% AUTHOR : Robert Baumgartner, OEAW Acoustical Research Institute
% latest update: 2010-08-25
% Modifications: Sebastian Grill 2011-9
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
if ~exist('tit','var')
tit='';
end
% figure('Name','Likelihood statistic','NumberTitle','off');
% clf
hold on
if ~exist('horlin','var')
plot(0.5:length(la)+0.5,275*ones(length(la)+1,1),'k:') % unimodal
plot(0.5:length(la)+0.5,350*ones(length(la)+1,1),'k:') % bimodal
plot(0.5:length(la)+0.5,400*ones(length(la)+1,1),'k:') % trimodal
plot(0.5:length(la)+0.5,437*ones(length(la)+1,1),'k:') % flat
else
plot(0.5:length(la)+0.5,horlin(1)*ones(length(la)+1,1),'k:') % unimodal
plot(0.5:length(la)+0.5,horlin(2)*ones(length(la)+1,1),'k:') % bimodal
plot(0.5:length(la)+0.5,horlin(3)*ones(length(la)+1,1),'k:') % trimodal
plot(0.5:length(la)+0.5,horlin(4)*ones(length(la)+1,1),'k:') % flat
end
h=bar(la);
set(gca,'XTick',1:length(la))
if strcmp('spatstrat',tit)==1
set(gca,'XTickLabel',{'baseline';'dummy';'warped'})
end
set(gca,'YLim',[200 550],'Layer','top')
set(gca,'Box','on')
set(h,'FaceColor','white','BarWidth',0.5)
ylabel('Likelihood')
xlabel('Condition')
errorbar(le,(ci(:,1)-ci(:,2))/2,'k.');
hold off
end