% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/simulate-sem.R
\name{simulate_dcvar_sem}
\alias{simulate_dcvar_sem}
\title{Simulate data from a SEM copula VAR(1) model}
\usage{
simulate_dcvar_sem(
  n_time = 200,
  J = 3,
  lambda = rep(sqrt(0.8), 3),
  sigma_e = sqrt(0.2),
  Phi = matrix(c(0.5, 0.15, 0.15, 0.3), 2, 2),
  mu = c(0, 0),
  margins = "normal",
  sigma = c(1, 1),
  sigma_exp = c(1, 1),
  skew_direction = NULL,
  rho = 0.3,
  burnin = 0,
  seed = NULL
)
}
\arguments{
\item{n_time}{Number of time points.}

\item{J}{Number of indicators per latent variable.}

\item{lambda}{Numeric vector of length J with factor loadings.}

\item{sigma_e}{Measurement error SD (scalar).}

\item{Phi}{2x2 VAR coefficient matrix.}

\item{mu}{Length-2 intercept vector.}

\item{margins}{Character string specifying the latent innovation margin.
One of \code{"normal"} (default) or \code{"exponential"}.}

\item{sigma}{Length-2 latent innovation SD vector for normal margins.}

\item{sigma_exp}{Length-2 shifted-exponential scale vector for exponential
margins.}

\item{skew_direction}{Integer vector of length 2 indicating skew direction
for exponential margins. Required when \code{margins = "exponential"}.}

\item{rho}{Copula correlation.}

\item{burnin}{Retained for backward compatibility but ignored. Default \code{0}
keeps the default simulation path aligned with the fitted SEM model,
which conditions on \code{x_0 = 0} and treats the first returned state as
observed rather than drawn after a burn-in period.}

\item{seed}{Random seed for reproducibility.}
}
\value{
A named list with:
\itemize{
\item \code{data}: data frame with columns \code{time}, \code{y1_1}, ..., \code{y1_J},
\code{y2_1}, ..., \code{y2_J}
\item \code{true_params}: list of true parameter values
\item \code{latent_states}: \verb{n_time x 2} matrix of true latent states
\item \code{innovations}: \verb{n_time x 2} matrix of true innovations
}
}
\description{
Generates indicator-level time series data from a latent VAR(1) process
with Gaussian copula dependence and a fixed measurement model.
}
