% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/chapter15_variable_interest.R
\name{z_from_coupon_semi}
\alias{z_from_coupon_semi}
\title{Bootstrap semiannual nominal spot rates from coupon-bond yields}
\usage{
z_from_coupon_semi(maturity, coupon_yield, par = 1000)
}
\arguments{
\item{maturity}{Numeric vector of maturities in years, typically
\code{0.5, 1.0, 1.5, ...}, in increasing order.}

\item{coupon_yield}{Numeric vector of nominal annual coupon yields
convertible semiannually.}

\item{par}{Par value of each bond.}
}
\value{
Numeric vector of semiannual nominal annual spot rates.
}
\description{
Bootstraps the semiannual nominal annual zero-coupon yields from par
coupon-bearing bond yields of the same maturities.
}
\details{
Both coupon yields and spot yields are interpreted as nominal annual rates
convertible semiannually.
}
\examples{
maturity <- c(0.5, 1.0, 1.5, 2.0)
coupon_yield <- c(0.0244, 0.0260, 0.0276, 0.0293)
z_from_coupon_semi(maturity, coupon_yield)

}
