GP.csh: Fit the Generalized Persistence Model with G-Side Student...

GP.cshR Documentation

Fit the Generalized Persistence Model with G-Side Student Effects

Description

Internal fitting engine with a random student intercept and separate residual variances by year. Called by GPvam after validation and recoding of the input data. Use GPvam for model fitting.

Usage

GP.csh(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.