https://github.com/Data2Dynamics/d2d
Tip revision: 83d6eedd5f6c33ae94dbce6c4e620d2f1bb57b1f authored by Joep Vanlier on 09 April 2015, 08:41:55 UTC
Forgot to update C version number
Forgot to update C version number
Tip revision: 83d6eed
arLRT.m
% LRT
%
% [pval,q] = arLRT(DeltaChi2, DeltaDF, alpha)
% pval = 1-chi2cdf(DeltaChi2, DeltaDF);
% q = pval > alpha;
%
% q = TRUE: accept H0, the smaller model can not be dismissed
% q = FALSE: reject H0, dismiss smaller model in favour of larger model
function [pval,q] = arLRT(DeltaChi2, DeltaDF, alpha)
pval = 1-chi2cdf(DeltaChi2, DeltaDF);
q = pval > alpha;