Skip to content

Commit

Permalink
minor tweaks to comments
Browse files Browse the repository at this point in the history
  • Loading branch information
acp29 committed May 7, 2024
1 parent 37cffd6 commit 8642cfb
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
12 changes: 6 additions & 6 deletions inst/bootci.m
Original file line number Diff line number Diff line change
Expand Up @@ -683,18 +683,18 @@
%!
%! % Calculations using the 'boot' and 'bootstrap' packages in R
%! %
%! % library (boot) % Functions from Davison and Hinkley (1997)
%! % A <- c(48,36,20,29,42,42,20,42,22,41,45,14,6, ...
%! % library (boot) # Functions from Davison and Hinkley (1997)
%! % A <- c(48,36,20,29,42,42,20,42,22,41,45,14,6,
%! % 0,33,28,34,4,32,24,47,41,24,26,30,41);
%! % n <- length(A)
%! % var.fun <- function (d, i) {
%! % % Function to compute the population variance
%! % # Function to compute the population variance
%! % n <- length (d);
%! % return (var (d[i]) * (n - 1) / n) };
%! % boot.fun <- function (d, i) {
%! % % Compute the estimate
%! % # Compute the estimate
%! % t <- var.fun (d, i);
%! % % Compute sampling variance of the estimate using Tukey's jackknife
%! % # Compute sampling variance of the estimate using Tukey's jackknife
%! % n <- length (d);
%! % U <- empinf (data=d[i], statistic=var.fun, type="jack", stype="i");
%! % var.t <- sum (U^2 / (n * (n - 1)));
Expand All @@ -707,7 +707,7 @@
%! % ci4 <- boot.ci (var.boot, conf=0.90, type="bca")
%! % ci5 <- boot.ci (var.boot, conf=0.90, type="stud")
%! %
%! % library (bootstrap) % Functions from Efron and Tibshirani (1993)
%! % library (bootstrap) # Functions from Efron and Tibshirani (1993)
%! % set.seed(1);
%! % ci4a <- bcanon (A, 19999, var.fun, alpha=c(0.05,0.95))
%! % set.seed(1);
Expand Down
12 changes: 6 additions & 6 deletions inst/bootknife.m
Original file line number Diff line number Diff line change
Expand Up @@ -1377,18 +1377,18 @@ function print_output (stats, nboot, alpha, l, m, bootfun_str, strata)
%!
%! % Calculations using the 'boot' and 'bootstrap' packages in R
%! %
%! % library (boot) % Functions from Davison and Hinkley (1997)
%! % A <- c(48,36,20,29,42,42,20,42,22,41,45,14,6, ...
%! % library (boot) # Functions from Davison and Hinkley (1997)
%! % A <- c(48,36,20,29,42,42,20,42,22,41,45,14,6,
%! % 0,33,28,34,4,32,24,47,41,24,26,30,41);
%! % n <- length(A)
%! % var.fun <- function (d, i) {
%! % % Function to compute the population variance
%! % # Function to compute the population variance
%! % n <- length (d);
%! % return (var (d[i]) * (n - 1) / n) };
%! % boot.fun <- function (d, i) {
%! % % Compute the estimate
%! % # Compute the estimate
%! % t <- var.fun (d, i);
%! % % Compute sampling variance of the estimate using Tukey's jackknife
%! % # Compute sampling variance of the estimate using Tukey's jackknife
%! % n <- length (d);
%! % U <- empinf (data=d[i], statistic=var.fun, type="jack", stype="i");
%! % var.t <- sum (U^2 / (n * (n - 1)));
Expand All @@ -1401,7 +1401,7 @@ function print_output (stats, nboot, alpha, l, m, bootfun_str, strata)
%! % ci4 <- boot.ci (var.boot, conf=0.90, type="bca")
%! % ci5 <- boot.ci (var.boot, conf=0.90, type="stud")
%! %
%! % library (bootstrap) % Functions from Efron and Tibshirani (1993)
%! % library (bootstrap) # Functions from Efron and Tibshirani (1993)
%! % set.seed(1);
%! % ci4a <- bcanon (A, 19999, var.fun, alpha=c(0.05,0.95))
%! % set.seed(1);
Expand Down

0 comments on commit 8642cfb

Please sign in to comment.