% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/extract_latent_parameters.R
\name{extract_latent_parameters}
\alias{extract_latent_parameters}
\title{Extract Parameters from Lavaan Models}
\usage{
extract_latent_parameters(
  model,
  type = "loadings",
  standardized = FALSE,
  digits = 3,
  ...
)
}
\arguments{
\item{model}{A fitted lavaan model.}

\item{type}{Type of parameters to extract: "loadings", "variances", or "all". Default is "loadings".}

\item{standardized}{Logical; if TRUE, returns standardized estimates. Default is FALSE.}

\item{digits}{Number of decimal places for p-value formatting (default=3)}

\item{...}{Additional arguments passed to \code{lavaan::parameterEstimates} or \code{lavaan::standardizedSolution}.}
}
\value{
A data frame containing the extracted parameters with formatted p-values.
}
\description{
This function extracts parameters (loadings, variances, etc.) from a lavaan model.
P-values are formatted appropriately (e.g., <0.001 for very small values).
}
\examples{
\donttest{
library(lavaan)
model <- 'F1 =~ x1 + x2 + x3'
fit <- cfa(model, data = HolzingerSwineford1939)
extract_latent_parameters(fit, type = "loadings")
}
}
