Universal PMM2 algorithm for all model types
pmm2_algorithm(
b_init,
X,
y,
m2,
m3,
m4,
max_iter = 50,
tol = 1e-06,
regularize = TRUE,
reg_lambda = 1e-08,
verbose = FALSE,
poly_terms = NULL
)List with estimation results
Initial parameter estimates
Design matrix
Response vector
Central moments
Maximum number of iterations
Tolerance for convergence
Whether to add regularization
Regularization parameter
Whether to print progress information
Pre-computed polynomial coefficients (list with elements A, B, C);
allows passing custom values for special scenarios, otherwise they are computed from moments