% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/from_files.R
\name{disaggregate_from_files}
\alias{disaggregate_from_files}
\title{Evidence-based disaggregation directly from Excel files}
\usage{
disaggregate_from_files(path_cpi, path_weights, ...)
}
\arguments{
\item{path_cpi}{Path to the CPI Excel file (index levels, re-indexed to the
same base as the production prices; see the package vignette and the data
note on \code{convert_to_index}).}

\item{path_weights}{Path to the VAB-weights Excel file.}

\item{...}{Passed to \code{\link{disaggregate_statespace}} (sampler controls,
\code{priors}, \code{student_obs}, ...).}
}
\value{
A \code{"disagg_statespace"} object.
}
\description{
Thin convenience wrapper: reads and aligns the CPI and VAB-weight files
(\code{\link{align_disagg_inputs}}) and runs the canonical state-space engine
(\code{\link{disaggregate_statespace}}).
}
\examples{
\dontrun{
cpi_file <- system.file("extdata", "CPI.xlsx", package = "BayesianDisaggregation")
w_file   <- system.file("extdata", "WEIGHTS.xlsx", package = "BayesianDisaggregation")
fit <- disaggregate_from_files(cpi_file, w_file, chains = 2, iter = 800)
}
}
\seealso{
\code{\link{disaggregate_statespace}}, \code{\link{align_disagg_inputs}}
}
