% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/postprocess.R
\name{fitted.smoothbp_fit}
\alias{fitted.smoothbp_fit}
\title{Fitted values for smoothbp_fit objects}
\usage{
\method{fitted}{smoothbp_fit}(object, newdata = NULL, summary = TRUE, ...)
}
\arguments{
\item{object}{A \code{smoothbp_fit} object.}

\item{newdata}{Optional data frame for prediction.}

\item{summary}{Logical; if \code{TRUE} (default), returns the mean and 95\% CI of the fitted values.}

\item{...}{Unused.}
}
\value{
If \code{summary = TRUE}, a \code{data.frame} containing the observation index, mean fitted value, and 95\% CI bounds. If \code{summary = FALSE}, a matrix of dimension \code{S x N} where \code{S} is the number of posterior draws and \code{N} is the number of observations, containing the posterior draws of the fitted values.
}
\description{
Fitted values for smoothbp_fit objects
}
