% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ild_brms_dynamics_formula.R
\name{ild_brms_dynamics_formula}
\alias{ild_brms_dynamics_formula}
\title{Template brms formula for person-varying lag slope}
\usage{
ild_brms_dynamics_formula(outcome, lag_var, id_var = "id")
}
\arguments{
\item{outcome}{Character name of the response.}

\item{lag_var}{Character name of an existing lag column (e.g. from [ild_lag()]).}

\item{id_var}{Character name of the grouping column in \code{data} (default
\code{"id"} as stored after [ild_prepare()] — use the original id column name).}
}
\value{
A list: \code{formula} (\code{formula} object), \code{notes} (character).
}
\description{
Returns a suggested formula and notes for fitting with [ild_brms()].
This does **not** run the model. Identification, priors, and convergence
depend on N, T, and scaling; see \code{vignette("brms-dynamics-recipes", package = "tidyILD")}.
}
\seealso{
[ild_brms()], [ild_panel_lag_prepare()].
}
