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 centring them and its rank is the rank of the centred 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 Aug. 20, 2026, 9:08 a.m.