Skip to content

Commit 4720a4d

Browse files
committed
updated matlab toolbox
1 parent 8767981 commit 4720a4d

File tree

3 files changed

+4
-13
lines changed

3 files changed

+4
-13
lines changed

inst/bootlm.m

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2130,10 +2130,11 @@
21302130

21312131
% Compute the Extended (Efron) Information Criterion, weights and relative
21322132
% liklihood. Uses simplified formula to calculate the log-likelihood from the
2133-
% variance (with denominator n) of the the residuals from a fitted linear model.
2133+
% mean squared error (MSE) of a fitted linear model (i.e. maximum likelihood),
2134+
% where the MSE uses n for the denominator.
21342135
% See Konishi & Kitagawa, "Bootstrap Information Criterion". In: Information
21352136
% Criteria and Statistical Modeling. Springer Series in Statistics. Springer, NY.
2136-
LogLik = @(var) 0.5 * (-n * (log (2 * pi) + log (var) + 1));
2137+
LogLik = @(mse) 0.5 * (-n * (log (2 * pi) + log (mse) + 1));
21372138
S_LL = LogLik (S_ERR); % Simple estimate of expected log-likelihood
21382139
A_LL = LogLik (A_ERR); % Apparent estimates of log-likelihood
21392140
b = sum (A_LL - S_LL, 2) / NBOOT; % Bootstrap bias estimate of log-likelihood

matlab/statistics-resampling.mltbx

61 Bytes
Binary file not shown.

matlab/statistics-resampling.prj

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<deployment-project plugin="plugin.toolbox" plugin-version="1.0">
2-
<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">
2+
<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">
33
<param.appname>statistics-resampling</param.appname>
44
<param.authnamewatermark>Andrew Penn</param.authnamewatermark>
55
<param.email>[email protected]</param.email>
@@ -53,11 +53,6 @@
5353
</fileset.rootdir>
5454
<fileset.rootfiles>
5555
<file>Y:\Documents\GitHub\statistics-resampling\inst\boot.m</file>
56-
<file>Y:\Documents\GitHub\statistics-resampling\inst\boot.mexa64</file>
57-
<file>Y:\Documents\GitHub\statistics-resampling\inst\boot.mexmaca64</file>
58-
<file>Y:\Documents\GitHub\statistics-resampling\inst\boot.mexmaci64</file>
59-
<file>Y:\Documents\GitHub\statistics-resampling\inst\boot.mexw32</file>
60-
<file>Y:\Documents\GitHub\statistics-resampling\inst\boot.mexw64</file>
6156
<file>Y:\Documents\GitHub\statistics-resampling\inst\boot1way.m</file>
6257
<file>Y:\Documents\GitHub\statistics-resampling\inst\bootbayes.m</file>
6358
<file>Y:\Documents\GitHub\statistics-resampling\inst\bootcdf.m</file>
@@ -79,11 +74,6 @@
7974
<file>Y:\Documents\GitHub\statistics-resampling\inst\sampszcalc.m</file>
8075
<file>Y:\Documents\GitHub\statistics-resampling\inst\smoothmad.m</file>
8176
<file>Y:\Documents\GitHub\statistics-resampling\inst\smoothmedian.m</file>
82-
<file>Y:\Documents\GitHub\statistics-resampling\inst\smoothmedian.mexa64</file>
83-
<file>Y:\Documents\GitHub\statistics-resampling\inst\smoothmedian.mexmaca64</file>
84-
<file>Y:\Documents\GitHub\statistics-resampling\inst\smoothmedian.mexmaci64</file>
85-
<file>Y:\Documents\GitHub\statistics-resampling\inst\smoothmedian.mexw32</file>
86-
<file>Y:\Documents\GitHub\statistics-resampling\inst\smoothmedian.mexw64</file>
8777
</fileset.rootfiles>
8878
<fileset.depfun.included />
8979
<fileset.depfun.excluded />

0 commit comments

Comments
 (0)