Skip to content

Commit

Permalink
removed typo in spinar_boot and its help page
Browse files Browse the repository at this point in the history
  • Loading branch information
MFaymon committed Apr 2, 2024
1 parent e232897 commit e9dfcbd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions R/spinar_boot.R
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@
#' coefficients \eqn{\code{alpha}_1,...,\code{alpha}_p} and the estimated
#' parameter(s) of the innovation distribution.}
#' \item{\code{bs_ci_percentile}}{[\code{named matrix}] with the lower and
#' upper bounds of Hall's bootstrap percentile confidence intervals for each
#' upper bounds of the bootstrap percentile confidence intervals for each
#' parameter in \code{parameters_star}.}
#' \item{\code{bs_ci_hall}}{[\code{named matrix}] with the lower and
#' upper bounds of the bootstrap percentile confidence intervals for each
#' upper bounds of Hall's bootstrap percentile confidence intervals for each
#' parameter in \code{parameters_star}.}
#' }
#'
Expand Down Expand Up @@ -136,7 +136,7 @@ spinar_boot <- function(x, p, B, setting, type = "mom", distr = "poi", M = 100,
bs$bs_ci_percentile[1,i] <- srt[B*level/2]
bs$bs_ci_percentile[2,i] <- srt[B*(1-level/2)]
} else{
K <- ceiling((B+1)*level/2)
K <- floor((B+1)*level/2)
bs$bs_ci_percentile[1,i] <- srt[K]
bs$bs_ci_percentile[2,i] <- srt[B+1-K]
}
Expand All @@ -152,7 +152,7 @@ spinar_boot <- function(x, p, B, setting, type = "mom", distr = "poi", M = 100,
bs$bs_ci_hall[1,i] <- parameters[i] - srt[B*(1-level/2)]
bs$bs_ci_hall[2,i] <- parameters[i] - srt[B*level/2]
} else{
K <- ceiling((B+1)*level/2)
K <- floor((B+1)*level/2)
bs$bs_ci_hall[1,i] <- parameters[i] - srt[B+1-K]
bs$bs_ci_hall[2,i] <- parameters[i] - srt[K]
}
Expand Down
4 changes: 2 additions & 2 deletions man/spinar_boot.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit e9dfcbd

Please sign in to comment.