% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/export.R
\name{report_html}
\alias{report_html}
\title{Write a self-contained HTML report of a Rasch analysis}
\usage{
report_html(fit, file, title = "Rasch measurement analysis", dpi = 150)
}
\arguments{
\item{fit}{A fitted object from \code{\link{rasch}}.}

\item{file}{Path of the HTML file to write.}

\item{title}{Report title.}

\item{dpi}{Resolution of the embedded plots.}
}
\value{
Invisibly, \code{file}.
}
\description{
Builds a single portable HTML file containing the complete analysis:
the summary statistics, every diagnostic table, and every test-level
plot embedded as an image, styled for reading and sharing. The file has
no external dependencies, so it can be e-mailed or archived as the
record of an analysis.
}
\examples{
set.seed(1)
d <- seq(-2, 2, length.out = 6)
X <- matrix(rbinom(300 * 6, 1, plogis(outer(rnorm(300), d, "-"))), 300, 6)
colnames(X) <- paste0("I", 1:6)
out <- file.path(tempdir(), "report.html")
report_html(rasch(X), out)
}
