Universal solver for PMM2 system of equations
solve_pmm2(
b_init,
X,
y,
m2,
m3,
m4,
max_iter = 1000,
tol = 1e-05,
regularize = TRUE,
reg_lambda = 1e-08,
verbose = FALSE
)Vector of PMM2 parameter estimates
Initial parameter estimates (usually from OLS or MLE)
Design matrix (including intercept and all predictors)
Response vector
Second central moment of residuals
Third central moment of residuals
Fourth central moment of residuals
Maximum number of iterations
Convergence tolerance
Whether to add regularization to Jacobian matrix
Regularization parameter
Print progress information