% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/integration.R
\name{add_integration}
\alias{add_integration}
\title{Add numerical integration points}
\usage{
add_integration(
  data,
  n_int = 64,
  cor = NULL,
  cor_adjust = NULL,
  verbose = TRUE,
  ...
)
}
\arguments{
\item{data}{An \code{mlumr_data} object from \code{\link[=combine_data]{combine_data()}}}

\item{n_int}{Number of integration points (default 64, powers of 2 recommended)}

\item{cor}{Correlation matrix for covariates. If \code{NULL}, computed from IPD.}

\item{cor_adjust}{Adjustment method: \code{"spearman"}, \code{"pearson"}, or \code{"none"}}

\item{verbose}{Logical; if \code{FALSE}, suppresses progress messages.}

\item{...}{Distribution specifications for each covariate using \code{\link[=distr]{distr()}}}
}
\value{
An \code{mlumr_data} object with integration points added
}
\description{
Generate quasi-Monte Carlo integration points using Sobol sequences and a
Gaussian copula to account for correlations between covariates in the AgD.
}
\examples{
\dontrun{
dat <- add_integration(
  dat,
  n_int = 64,
  x1 = distr(qnorm, mean = x1_mean, sd = x1_sd),
  x2 = distr(qbern, prob = x2_mean)
)
}
}
