Learn R Programming

extRC (version 1.0)

PraD: Discrepancy with respect to inequality constraints

Description

Internal function that, given a vector of joint probabilities from 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.

Usage

PraD(the, Model, der = FALSE)

Arguments

the

vector of canonical parameters

Model

list of model components

der

to require the derivative (optional)

Value

hdis

vector of discrepancies

Hdis

matrix of derivatives of discrepancies with respect to the canonical parameter (optional)