% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Reg_parCI.R
\name{Reg_parCI}
\alias{Reg_parCI}
\title{Confidence intervals for regional GEV parameters}
\usage{
Reg_parCI(add_data, model, reg_par, n.boots = 999, progress = NULL)
}
\arguments{
\item{add_data}{A numeric matrix of air temperature data as calculated by \code{Dataset_add()}.}

\item{model}{A single integer number from 1 to 4 defining the GEV model.
May be provided by \code{Best_model()}.}

\item{reg_par}{A 5-column and 1-row data.frame or matrix as generated by \code{Reg_par()}.
\itemize{
\item 1st column is the mu0 parameter,
\item 2nd is the mu1 parameter,
\item 3rd is the sigma0 parameter,
\item 4th is the sigma1 parameter,
\item 5th is the shape parameter.
}}

\item{n.boots}{A single number describing the number of bootstrap replicates.
Whenever possible, \code{n.boots} should be set to 999 (default),
as suggested by Burn (2003) <10.1623/hysj.48.1.25.43485>
and O'Brien and Burn (2014) <10.1016/j.jhydrol.2014.09.041>.}

\item{progress}{Logical scalar controlling whether a progress bar is displayed.
\code{TRUE} forces the bar on, \code{FALSE} forces it off, and
\code{NULL} (default) defers to \code{getOption("NSTempRFA.progress")},
which itself falls back to \code{interactive()}. Set
\code{options(NSTempRFA.progress = FALSE)} to suppress the bar globally.}
}
\value{
A matrix containing the 95\% confidence intervals (lower and upper bounds)
of the time-varying parameter estimates. The spatial dependence between
sites is preserved.
}
\description{
Confidence intervals for regional GEV parameters
}
\examples{
\dontshow{if (interactive()) withAutoprint(\{ # examplesIf}
add.data <- Dataset_add(TmaxCPC_SP)
best.parms <- Best_model(add.data = add.data$add_data)
regional.parms <- Reg_par(best_model = best.parms$atsite.models)

Reg_parCI(
  add_data  = add.data$add_data,
  model     = best.parms$best,
  reg_par   = regional.parms,
  n.boots   = 100
)
\dontshow{\}) # examplesIf}
}
