Skip to content

Commit

Permalink
updated matlab toolbox
Browse files Browse the repository at this point in the history
  • Loading branch information
acp29 committed Jun 15, 2024
1 parent 8767981 commit 4720a4d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 13 deletions.
5 changes: 3 additions & 2 deletions inst/bootlm.m
Original file line number Diff line number Diff line change
Expand Up @@ -2130,10 +2130,11 @@

% Compute the Extended (Efron) Information Criterion, weights and relative
% liklihood. Uses simplified formula to calculate the log-likelihood from the
% variance (with denominator n) of the the residuals from a fitted linear model.
% mean squared error (MSE) of a fitted linear model (i.e. maximum likelihood),
% where the MSE uses n for the denominator.
% See Konishi & Kitagawa, "Bootstrap Information Criterion". In: Information
% Criteria and Statistical Modeling. Springer Series in Statistics. Springer, NY.
LogLik = @(var) 0.5 * (-n * (log (2 * pi) + log (var) + 1));
LogLik = @(mse) 0.5 * (-n * (log (2 * pi) + log (mse) + 1));
S_LL = LogLik (S_ERR); % Simple estimate of expected log-likelihood
A_LL = LogLik (A_ERR); % Apparent estimates of log-likelihood
b = sum (A_LL - S_LL, 2) / NBOOT; % Bootstrap bias estimate of log-likelihood
Expand Down
Binary file modified matlab/statistics-resampling.mltbx
Binary file not shown.
12 changes: 1 addition & 11 deletions matlab/statistics-resampling.prj
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<deployment-project plugin="plugin.toolbox" plugin-version="1.0">
<configuration build-checksum="1289251195" file="Y:\Documents\GitHub\statistics-resampling\matlab\statistics-resampling.prj" location="Y:\Documents\GitHub\statistics-resampling\matlab" name="statistics-resampling" target="target.toolbox" target-name="Package Toolbox">
<configuration build-checksum="3757329451" file="Y:\Documents\GitHub\statistics-resampling\matlab\statistics-resampling.prj" location="Y:\Documents\GitHub\statistics-resampling\matlab" name="statistics-resampling" target="target.toolbox" target-name="Package Toolbox">
<param.appname>statistics-resampling</param.appname>
<param.authnamewatermark>Andrew Penn</param.authnamewatermark>
<param.email>[email protected]</param.email>
Expand Down Expand Up @@ -53,11 +53,6 @@
</fileset.rootdir>
<fileset.rootfiles>
<file>Y:\Documents\GitHub\statistics-resampling\inst\boot.m</file>
<file>Y:\Documents\GitHub\statistics-resampling\inst\boot.mexa64</file>
<file>Y:\Documents\GitHub\statistics-resampling\inst\boot.mexmaca64</file>
<file>Y:\Documents\GitHub\statistics-resampling\inst\boot.mexmaci64</file>
<file>Y:\Documents\GitHub\statistics-resampling\inst\boot.mexw32</file>
<file>Y:\Documents\GitHub\statistics-resampling\inst\boot.mexw64</file>
<file>Y:\Documents\GitHub\statistics-resampling\inst\boot1way.m</file>
<file>Y:\Documents\GitHub\statistics-resampling\inst\bootbayes.m</file>
<file>Y:\Documents\GitHub\statistics-resampling\inst\bootcdf.m</file>
Expand All @@ -79,11 +74,6 @@
<file>Y:\Documents\GitHub\statistics-resampling\inst\sampszcalc.m</file>
<file>Y:\Documents\GitHub\statistics-resampling\inst\smoothmad.m</file>
<file>Y:\Documents\GitHub\statistics-resampling\inst\smoothmedian.m</file>
<file>Y:\Documents\GitHub\statistics-resampling\inst\smoothmedian.mexa64</file>
<file>Y:\Documents\GitHub\statistics-resampling\inst\smoothmedian.mexmaca64</file>
<file>Y:\Documents\GitHub\statistics-resampling\inst\smoothmedian.mexmaci64</file>
<file>Y:\Documents\GitHub\statistics-resampling\inst\smoothmedian.mexw32</file>
<file>Y:\Documents\GitHub\statistics-resampling\inst\smoothmedian.mexw64</file>
</fileset.rootfiles>
<fileset.depfun.included />
<fileset.depfun.excluded />
Expand Down

0 comments on commit 4720a4d

Please sign in to comment.