score_rank: Numerical Rank of the Entity-Level Score Matrix

View source: R/model_space.R

score_rankR Documentation

Numerical Rank of the Entity-Level Score Matrix

Description

The sandwich covariance uses J = G'G, where the rows of G are the entity-level score vectors. At the maximum the rows of G sum to zero, so J is unchanged by centering them and its rank is the rank of the centered matrix: only the variation across entities of the scores contributes. Parameters that enter the log-likelihood solely through terms common to every entity have no such variation and contribute nothing, whatever the number of entities.

Usage

score_rank(Gmat)

Arguments

Gmat

Matrix of entity-level scores, one row per entity.

Value

Integer, the numerical rank.


badp documentation built on Sept. 15, 2026, 1:08 a.m.