% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/model_logistic.R
\name{fit_logistic_random}
\alias{fit_logistic_random}
\title{Fit a random-effects logistic model via glmmTMB::glmmTMB}
\usage{
fit_logistic_random(
  local_data,
  formula,
  effect,
  weights,
  id_col,
  time_col,
  family = "binomial"
)
}
\arguments{
\item{local_data}{A \code{data.frame} containing all formula variables plus
the panel index columns.}

\item{formula}{A formula object with a binary response (no random-effect
terms; those are added automatically from \code{effect}).}

\item{effect}{Character scalar: one of \code{"individual"},
\code{"time"}, \code{"two-way"}, \code{"nested"}.}

\item{weights}{Numeric vector of kernel weights.}

\item{id_col}{Name of the individual ID column.}

\item{time_col}{Name of the time column.}

\item{family}{Character scalar reserved for future extension.}
}
\value{
A \code{glmmTMB} object.
}
\description{
Fit a random-effects logistic model via glmmTMB::glmmTMB
}
\keyword{internal}
