Internal function that, given a vector of canonical parameters for an IxJ table (vectorized by row) and the RC model specification in list Model, computes vector of discrepancies and matrix of its derivatives with respect to the canonical parameters.
PraD(the, Model, der = FALSE)
vector of canonical parameters
list of model components
to require the derivative (optional)
vector of parameters (logits, interactions)
vector of discrepancies
matrix of derivatives of discrepancies with respect to the canonical parameter (optional)