rGP.un: Fit the Reduced Generalized Persistence Model

rGP.unR Documentation

Fit the Reduced Generalized Persistence Model

Description

Internal R-side student-effects engine called by GPvam. Each teacher has a current-year effect and, where applicable, a single effect shared across subsequent years. Use GPvam for model fitting.

Usage

rGP.un(Z_mat, fixed_effects, control)

Arguments

Z_mat

Validated data frame with consecutive numeric year indices and year-specific teacher identifiers.

fixed_effects

One-sided formula for the fixed effects.

control

List of fitting controls assembled by GPvam, including iteration limit, tolerance, Hessian method, persistence model, verbosity, estimation method, and the original-to-internal year key.

Value

A list of parameter estimates, predictions, residuals, covariance matrices, and fitting information used to construct a GPvam object.


GPvam documentation built on Oct. 23, 2026, 1:06 a.m.