% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/lfebd3.R
\name{lfbd_analyze}
\alias{lfbd_analyze}
\title{Generate and analyze an LFBD in one call}
\usage{
lfbd_analyze(
  type = c("lfbd", "lfbd.fr", "lfbd.cf.full"),
  factor_levels,
  n,
  c = NULL,
  r = NULL,
  block_size = NULL,
  show_design = TRUE,
  run_analysis = TRUE
)
}
\arguments{
\item{type}{Character string specifying the generator to use. Must be one of
`"lfbd"`, `"lfbd.fr"`, or `"lfbd.cf.full"`.}

\item{factor_levels}{Integer vector giving the number of levels for each
factor.}

\item{n}{Integer. Number of factors used by the generator.}

\item{c}{Optional integer degree of fractionation for `type = "lfbd.fr"`.}

\item{r}{Optional integer controlling principal block size for
`type = "lfbd.cf.full"`.}

\item{block_size}{Optional block size used when converting run-ordered
designs into blocks.}

\item{show_design}{Logical; if `TRUE`, print the generated design.}

\item{run_analysis}{Logical; if `TRUE`, call [FactChar()] on the derived
blocks.}
}
\value{
Invisibly returns a list with the selected design type, generated
  design object, derived block list, and analysis output.
}
\description{
Wrapper that generates a complete, fractional, or confounded LFBD and then,
optionally, analyzes its design characteristics.
}
\details{
This wrapper uses internal helper functions to convert generated designs
into block lists and to print the generated design before analysis.
}
\seealso{
[lfbd()], [lfbd.fr()], [lfbd.cf.full()], [FactChar()]
}
