% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/get_B.R
\name{.compute_score_V_partitioned}
\alias{.compute_score_V_partitioned}
\title{Compute Partitioned GEE Score Vector}
\usage{
.compute_score_V_partitioned(
  X,
  X_block,
  y,
  result,
  K,
  p_expansions,
  family,
  W,
  Delta_V,
  observation_weights
)
}
\arguments{
\item{X}{List of partition-specific design matrices.}

\item{X_block}{Full \eqn{N \times P} block-diagonal design.}

\item{y}{List of response vectors by partition.}

\item{result}{List of current coefficient column vectors by partition.}

\item{K, p_expansions}{Integer dimensions.}

\item{family}{GLM family object.}

\item{W}{Length-\eqn{N} vector of GLM working weights.}

\item{Delta_V}{Fixed \eqn{N \times N} matrix
\eqn{\mathbf{V}^{-1} - \mathbf{I}}.}

\item{observation_weights}{List of observation weights by partition.}
}
\value{
A list of \eqn{K+1} column vectors, each
  \eqn{p\_expansions \times 1}, representing the partition-wise
  components of the full GEE score.
}
\description{
Computes the GEE score vector \eqn{\mathbf{X}^{\top}\mathrm{diag}
(\mathbf{W})\mathbf{V}^{-1}(\mathbf{y} - \boldsymbol{\mu})} split
into per-partition pieces of dimension \eqn{p \times 1} each. Uses
the identity \eqn{\mathbf{V}^{-1} = \mathbf{I} + \boldsymbol{\Delta}_V}
where \eqn{\boldsymbol{\Delta}_V = \mathbf{V}^{-1} - \mathbf{I}} is
precomputed and fixed across iterations, avoiding explicit formation
of \eqn{\mathbf{V}^{-1}}.
}
\keyword{internal}
